Changeset View
Changeset View
Standalone View
Standalone View
include/llvm/CodeGen/PseudoSourceValue.h
Context not available. | |||||
ConstantPool, | ConstantPool, | ||||
FixedStack, | FixedStack, | ||||
GlobalValueCallEntry, | GlobalValueCallEntry, | ||||
ExternalSymbolCallEntry | ExternalSymbolCallEntry, | ||||
TargetCustom | |||||
}; | }; | ||||
private: | private: | ||||
Context not available. | |||||
bool isGOT() const { return Kind == GOT; } | bool isGOT() const { return Kind == GOT; } | ||||
bool isConstantPool() const { return Kind == ConstantPool; } | bool isConstantPool() const { return Kind == ConstantPool; } | ||||
bool isJumpTable() const { return Kind == JumpTable; } | bool isJumpTable() const { return Kind == JumpTable; } | ||||
unsigned isTargetCustom() const { | |||||
arsenm: Since this returns the Kind ID value instead of a bool, a name like getTargetCustom would be… | |||||
kariddiAuthorUnsubmitted Not Done ReplyInline ActionsAgreed , done in the next patch kariddi: Agreed , done in the next patch | |||||
return (Kind >= TargetCustom) ? ((Kind+1) - TargetCustom) : 0; | |||||
} | |||||
/// Test whether the memory pointed to by this PseudoSourceValue has a | /// Test whether the memory pointed to by this PseudoSourceValue has a | ||||
/// constant value. | /// constant value. | ||||
Context not available. |
Since this returns the Kind ID value instead of a bool, a name like getTargetCustom would be better