[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / lib / Target / TargetIntrinsicInfo.cpp
blob256514c8c22d6ec9df23127be6d70eba24b766e7
1 //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the TargetIntrinsicInfo class.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/Target/TargetIntrinsicInfo.h"
14 #include "llvm/ADT/StringMap.h"
15 #include "llvm/IR/Function.h"
16 using namespace llvm;
18 TargetIntrinsicInfo::TargetIntrinsicInfo() {
21 TargetIntrinsicInfo::~TargetIntrinsicInfo() {
24 unsigned TargetIntrinsicInfo::getIntrinsicID(const Function *F) const {
25 const ValueName *ValName = F->getValueName();
26 if (!ValName)
27 return 0;
28 return lookupName(ValName->getKeyData(), ValName->getKeyLength());