14 #ifndef LLVM_TARGET_TARGETINTRINSICINFO_H
15 #define LLVM_TARGET_TARGETINTRINSICINFO_H
44 virtual std::string
getName(
unsigned IID,
Type **Tys =
nullptr,
45 unsigned numTys = 0)
const = 0;
49 virtual unsigned lookupName(
const char *
Name,
unsigned Len)
const =0;
65 unsigned numTys = 0)
const = 0;
A Module instance is used to store all the information related to an LLVM module. ...
virtual unsigned getIntrinsicID(const Function *F) const
Return the target intrinsic ID of a function, or 0.
virtual Function * getDeclaration(Module *M, unsigned ID, Type **Tys=nullptr, unsigned numTys=0) const =0
Create or insert an LLVM Function declaration for an intrinsic, and return it.
unsigned lookupName(StringRef Name) const
virtual unsigned lookupName(const char *Name, unsigned Len) const =0
Look up target intrinsic by name.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
virtual ~TargetIntrinsicInfo()
The instances of the Type class are immutable: once they are created, they are never changed...
TargetIntrinsicInfo - Interface to description of machine instruction set.
virtual bool isOverloaded(unsigned IID) const =0
Returns true if the intrinsic can be overloaded.
virtual std::string getName(unsigned IID, Type **Tys=nullptr, unsigned numTys=0) const =0
Return the name of a target intrinsic, e.g.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
StringRef - Represent a constant reference to a string, i.e.