23 #ifndef LLVM_LIB_TRANSFORMS_OBJCARC_ARCRUNTIMEENTRYPOINTS_H 24 #define LLVM_LIB_TRANSFORMS_OBJCARC_ARCRUNTIMEENTRYPOINTS_H 73 assert(TheModule !=
nullptr &&
"Not initialized.");
78 "objc_autoreleaseReturnValue",
true);
80 return getVoidRetI8XEntryPoint(
Release,
"objc_release");
82 return getI8XRetI8XEntryPoint(
Retain,
"objc_retain",
true);
84 return getI8XRetI8XEntryPoint(
RetainBlock,
"objc_retainBlock",
false);
86 return getI8XRetI8XEntryPoint(
Autorelease,
"objc_autorelease",
true);
88 return getI8XRetI8XXI8XEntryPoint(
StoreStrong,
"objc_storeStrong");
90 return getI8XRetI8XEntryPoint(
RetainRV,
91 "objc_retainAutoreleasedReturnValue",
true);
97 "objc_retainAutoreleaseReturnValue",
true);
105 Module *TheModule =
nullptr;
148 bool NoUnwind =
false) {
154 Type *Params[] = { I8X };
160 Attribute::NoUnwind);
172 Type *Params[] = { I8XX, I8X };
189 #endif // LLVM_LIB_TRANSFORMS_OBJCARC_ARCRUNTIMEENTRYPOINTS_H
Compute iterated dominance frontiers using a linear time algorithm.
Constant * getOrInsertFunction(StringRef Name, FunctionType *T, AttributeList AttributeList)
Look up the specified function in the module symbol table.
A Module instance is used to store all the information related to an LLVM module. ...
AttributeList addParamAttribute(LLVMContext &C, unsigned ArgNo, Attribute::AttrKind Kind) const
Add an argument attribute to the list.
LLVMContext & getContext() const
Get the global data context.
This file contains the simple types necessary to represent the attributes associated with functions a...
Class to represent function types.
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
This is an important base class in LLVM.
static Type * getVoidTy(LLVMContext &C)
static FunctionType * get(Type *Result, ArrayRef< Type *> Params, bool isVarArg)
This static method is the primary way of constructing a FunctionType.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
static PointerType * getUnqual(Type *ElementType)
This constructs a pointer to an object of the specified type in the generic address space (address sp...
Module.h This file contains the declarations for the Module class.
AttributeList addAttribute(LLVMContext &C, unsigned Index, Attribute::AttrKind Kind) const
Add an attribute to the attribute set at the given index.
Declarations for ObjC runtime functions and constants.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
StringRef - Represent a constant reference to a string, i.e.
static IntegerType * getInt8Ty(LLVMContext &C)