50 #ifndef LLVM_CODEGEN_GCSTRATEGY_H 51 #define LLVM_CODEGEN_GCSTRATEGY_H 87 bool UseStatepoints =
false;
91 unsigned NeededSafePoints = 0;
92 bool CustomReadBarriers =
false;
93 bool CustomWriteBarriers =
false;
94 bool CustomRoots =
false;
96 bool UsesMetadata =
false;
145 return (NeededSafePoints & 1 << Kind) != 0;
181 #endif // LLVM_CODEGEN_GCSTRATEGY_H Compute iterated dominance frontiers using a linear time algorithm.
A global registry used in conjunction with static constructors to make pluggable components (like tar...
PointKind
PointKind - Used to indicate whether the address of the call instruction or the address after the cal...
bool customReadBarrier() const
By default, read barriers are replaced with simple load instructions.
An analysis pass which caches information about the entire Module.
const std::string & getName() const
Return the name of the GC strategy.
virtual Optional< bool > isGCManagedPointer(const Type *Ty) const
If the type specified can be reliably distinguished, returns true for pointers to GC managed location...
bool customWriteBarrier() const
By default, write barriers are replaced with simple store instructions.
bool useStatepoints() const
Returns true if this strategy is expecting the use of gc.statepoints, and false otherwise.
The instances of the Type class are immutable: once they are created, they are never changed...
Instr is the return address of a call.
bool needsSafePoint(GC::PointKind Kind) const
True if the given kind of safe point is required.
bool usesMetadata() const
If set, appropriate metadata tables must be emitted by the back-end (assembler, JIT, or otherwise).
GCStrategy describes a garbage collector algorithm's code generation requirements, and provides overridable hooks for those needs which cannot be abstractly described.
bool initializeRoots() const
If set, gcroot intrinsics should initialize their allocas to null before the first use...
Instr is a call instruction.
bool needsSafePoints() const
True if safe points of any kind are required.
bool customRoots() const
By default, roots are left for the code generator so it can generate a stack map. ...