15 #ifndef LLVM_IR_INTRINSICS_H 16 #define LLVM_IR_INTRINSICS_H 44 #define GET_INTRINSIC_ENUM_VALUES 45 #include "llvm/IR/IntrinsicEnums.inc" 46 #undef GET_INTRINSIC_ENUM_VALUES 59 std::string
getName(ID
id, ArrayRef<Type*> Tys);
63 ArrayRef<Type*> Tys = None);
83 Function *
getDeclaration(Module *M, ID
id, ArrayRef<Type*> Tys = None);
164 unsigned Field = Hi << 16 |
Lo;
This class represents an incoming formal argument to a Function.
ArgKind getArgumentKind() const
MatchIntrinsicTypesResult
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
bool isOverloaded(ID id)
Returns true if the intrinsic can be overloaded.
This is a type descriptor which explains the type requirements of an intrinsic.
StringRef getName(ID id)
Return the LLVM name for an intrinsic, such as "llvm.ppc.altivec.lvx".
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
unsigned getArgumentNumber() const
AttributeList getAttributes(LLVMContext &C, ID id)
Return the attributes for an intrinsic.
llvm::Optional< Function * > remangleIntrinsicFunction(Function *F)
Class to represent function types.
unsigned Struct_NumElements
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Function * getDeclaration(Module *M, ID id, ArrayRef< Type *> Tys=None)
Create or insert an LLVM Function declaration for an intrinsic, and return it.
bool isLeaf(ID id)
Returns true if the intrinsic is a leaf, i.e.
unsigned Pointer_AddressSpace
unsigned getOverloadArgNumber() const
enum llvm::Intrinsic::IITDescriptor::IITDescriptorKind Kind
bool matchIntrinsicVarArg(bool isVarArg, ArrayRef< IITDescriptor > &Infos)
Verify if the intrinsic has variable arguments.
ID getIntrinsicForGCCBuiltin(const char *Prefix, StringRef BuiltinName)
Map a GCC builtin name to an intrinsic ID.
void getIntrinsicInfoTableEntries(ID id, SmallVectorImpl< IITDescriptor > &T)
Return the IIT table descriptor for the specified intrinsic into an array of IITDescriptors.
FunctionType * getType(LLVMContext &Context, ID id, ArrayRef< Type *> Tys=None)
Return the function type for an intrinsic.
MatchIntrinsicTypesResult matchIntrinsicSignature(FunctionType *FTy, ArrayRef< IITDescriptor > &Infos, SmallVectorImpl< Type *> &ArgTys)
Match the specified function type with the type constraints specified by the .td file.
unsigned getRefArgNumber() const
ID getIntrinsicForMSBuiltin(const char *Prefix, StringRef BuiltinName)
Map a MS builtin name to an intrinsic ID.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
int lookupLLVMIntrinsicByName(ArrayRef< const char *> NameTable, StringRef Name)
Looks up Name in NameTable via binary search.