class TargetIntrinsicInfo
Declaration
class TargetIntrinsicInfo { /* full declaration omitted */ };
Description
TargetIntrinsicInfo - Interface to description of machine instruction set
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:29
Method Overview
- private TargetIntrinsicInfo(const llvm::TargetIntrinsicInfo &)
- public TargetIntrinsicInfo()
- public virtual llvm::Function * getDeclaration(llvm::Module * M, unsigned int ID, llvm::Type ** Tys = nullptr, unsigned int numTys = 0) const
- public virtual unsigned int getIntrinsicID(const llvm::Function * F) const
- public virtual std::string getName(unsigned int IID, llvm::Type ** Tys = nullptr, unsigned int numTys = 0) const
- public virtual bool isOverloaded(unsigned int IID) const
- public virtual unsigned int lookupName(const char * Name, unsigned int Len) const
- public unsigned int lookupName(llvm::StringRef Name) const
- public virtual ~TargetIntrinsicInfo()
Methods
¶TargetIntrinsicInfo(
const llvm::TargetIntrinsicInfo&)
TargetIntrinsicInfo(
const llvm::TargetIntrinsicInfo&)
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:30
Parameters
- const llvm::TargetIntrinsicInfo&
¶TargetIntrinsicInfo()
TargetIntrinsicInfo()
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:33
¶virtual llvm::Function* getDeclaration(
llvm::Module* M,
unsigned int ID,
llvm::Type** Tys = nullptr,
unsigned int numTys = 0) const
virtual llvm::Function* getDeclaration(
llvm::Module* M,
unsigned int ID,
llvm::Type** Tys = nullptr,
unsigned int numTys = 0) const
Description
Create or insert an LLVM Function declaration for an intrinsic, and return it. The Tys and numTys are for intrinsics with overloaded types. See above for more information.
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:62
Parameters
- llvm::Module* M
- unsigned int ID
- llvm::Type** Tys = nullptr
- unsigned int numTys = 0
¶virtual unsigned int getIntrinsicID(
const llvm::Function* F) const
virtual unsigned int getIntrinsicID(
const llvm::Function* F) const
Description
Return the target intrinsic ID of a function, or 0.
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:54
Parameters
- const llvm::Function* F
¶virtual std::string getName(
unsigned int IID,
llvm::Type** Tys = nullptr,
unsigned int numTys = 0) const
virtual std::string getName(
unsigned int IID,
llvm::Type** Tys = nullptr,
unsigned int numTys = 0) const
Description
Return the name of a target intrinsic, e.g. "llvm.bfin.ssync". The Tys and numTys parameters are for intrinsics with overloaded types (e.g., those using iAny or fAny). For a declaration for an overloaded intrinsic, Tys should point to an array of numTys pointers to Type, and must provide exactly one type for each overloaded type in the intrinsic.
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:42
Parameters
- unsigned int IID
- llvm::Type** Tys = nullptr
- unsigned int numTys = 0
¶virtual bool isOverloaded(unsigned int IID) const
virtual bool isOverloaded(unsigned int IID) const
Description
Returns true if the intrinsic can be overloaded.
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:57
Parameters
- unsigned int IID
¶virtual unsigned int lookupName(
const char* Name,
unsigned int Len) const
virtual unsigned int lookupName(
const char* Name,
unsigned int Len) const
Description
Look up target intrinsic by name. Return intrinsic ID or 0 for unknown names.
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:47
Parameters
- const char* Name
- unsigned int Len
¶unsigned int lookupName(
llvm::StringRef Name) const
unsigned int lookupName(
llvm::StringRef Name) const
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:49
Parameters
- llvm::StringRef Name
¶virtual ~TargetIntrinsicInfo()
virtual ~TargetIntrinsicInfo()
Declared at: llvm/include/llvm/Target/TargetIntrinsicInfo.h:34