LLVM
8.0.1
lib
Target
TargetIntrinsicInfo.cpp
Go to the documentation of this file.
1
//===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file implements the TargetIntrinsicInfo class.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "
llvm/Target/TargetIntrinsicInfo.h
"
15
#include "
llvm/ADT/StringMap.h
"
16
#include "
llvm/IR/Function.h
"
17
using namespace
llvm
;
18
19
TargetIntrinsicInfo::TargetIntrinsicInfo
() {
20
}
21
22
TargetIntrinsicInfo::~TargetIntrinsicInfo
() {
23
}
24
25
unsigned
TargetIntrinsicInfo::getIntrinsicID
(
const
Function
*
F
)
const
{
26
const
ValueName
*ValName = F->
getValueName
();
27
if
(!ValName)
28
return
0;
29
return
lookupName
(ValName->
getKeyData
(), ValName->
getKeyLength
());
30
}
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:24
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMap.h:126
F
F(f)
llvm::Function
Definition:
Function.h:60
llvm::TargetIntrinsicInfo::lookupName
virtual unsigned lookupName(const char *Name, unsigned Len) const =0
Look up target intrinsic by name.
llvm::TargetIntrinsicInfo::TargetIntrinsicInfo
TargetIntrinsicInfo()
Definition:
TargetIntrinsicInfo.cpp:19
llvm::TargetIntrinsicInfo::~TargetIntrinsicInfo
virtual ~TargetIntrinsicInfo()
Definition:
TargetIntrinsicInfo.cpp:22
StringMap.h
llvm::Value::getValueName
ValueName * getValueName() const
Definition:
Value.cpp:186
Function.h
llvm::TargetIntrinsicInfo::getIntrinsicID
virtual unsigned getIntrinsicID(const Function *F) const
Return the target intrinsic ID of a function, or 0.
Definition:
TargetIntrinsicInfo.cpp:25
llvm::StringMapEntryBase::getKeyLength
size_t getKeyLength() const
Definition:
StringMap.h:45
llvm::StringMapEntry::getKeyData
const char * getKeyData() const
getKeyData - Return the start of the string data that is the key for this value.
Definition:
StringMap.h:149
TargetIntrinsicInfo.h
Generated on Sun Dec 20 2020 13:58:05 for LLVM by
1.8.13