IRValue
public protocol IRValue
An IRValue is a type that is capable of lowering itself to an
LLVMValueRef object for use with LLVM’s C API.
-
Retrieves the underlying LLVM value object.
Declaration
Swift
func asLLVM() -> LLVMValueRef -
isAArgumentExtension methodWhether or not the underlying LLVM value is an
ArgumentDeclaration
Swift
var isAArgument: Bool { get } -
isABasicBlockExtension methodWhether or not the underlying LLVM value is a
BasicBlockDeclaration
Swift
var isABasicBlock: Bool { get } -
isAInlineAsmExtension methodWhether or not the underlying LLVM value is
InlineAsmDeclaration
Swift
var isAInlineAsm: Bool { get } -
isAUserExtension methodWhether or not the underlying LLVM value is a
UserDeclaration
Swift
var isAUser: Bool { get } -
isAConstantExtension methodWhether or not the underlying LLVM value is a
ConstantDeclaration
Swift
var isAConstant: Bool { get } -
isABlockAddressExtension methodWhether or not the underlying LLVM value is a
BlockAddressDeclaration
Swift
var isABlockAddress: Bool { get } -
isAConstantAggregateZeroExtension methodWhether or not the underlying LLVM value is a
ConstantAggregateZeroDeclaration
Swift
var isAConstantAggregateZero: Bool { get } -
isAConstantArrayExtension methodWhether or not the underlying LLVM value is a
ConstantArrayDeclaration
Swift
var isAConstantArray: Bool { get } -
isAConstantDataSequentialExtension methodWhether or not the underlying LLVM value is a
ConstantDataSequentialDeclaration
Swift
var isAConstantDataSequential: Bool { get } -
isAConstantDataArrayExtension methodWhether or not the underlying LLVM value is a
ConstantDataArrayDeclaration
Swift
var isAConstantDataArray: Bool { get } -
isAConstantDataVectorExtension methodWhether or not the underlying LLVM value is a
ConstantDataVectorDeclaration
Swift
var isAConstantDataVector: Bool { get } -
isAConstantExprExtension methodWhether or not the underlying LLVM value is a
ConstantExprDeclaration
Swift
var isAConstantExpr: Bool { get } -
isAConstantFPExtension methodWhether or not the underlying LLVM value is a
ConstantFPDeclaration
Swift
var isAConstantFP: Bool { get } -
isAConstantIntExtension methodWhether or not the underlying LLVM value is a
ConstantIntDeclaration
Swift
var isAConstantInt: Bool { get } -
isAConstantPointerNullExtension methodWhether or not the underlying LLVM value is a
ConstantPointerNullDeclaration
Swift
var isAConstantPointerNull: Bool { get } -
isAConstantStructExtension methodWhether or not the underlying LLVM value is a
ConstantStructDeclaration
Swift
var isAConstantStruct: Bool { get } -
isAConstantTokenNoneExtension methodWhether or not the underlying LLVM value is a
ConstantTokenNoneDeclaration
Swift
var isAConstantTokenNone: Bool { get } -
isAConstantVectorExtension methodWhether or not the underlying LLVM value is a
ConstantVectorDeclaration
Swift
var isAConstantVector: Bool { get } -
isAGlobalValueExtension methodWhether or not the underlying LLVM value is a
GlobalValueDeclaration
Swift
var isAGlobalValue: Bool { get } -
isAGlobalAliasExtension methodWhether or not the underlying LLVM value is a
GlobalAliasDeclaration
Swift
var isAGlobalAlias: Bool { get } -
isAGlobalObjectExtension methodWhether or not the underlying LLVM value is a
GlobalObjectDeclaration
Swift
var isAGlobalObject: Bool { get } -
isAFunctionExtension methodWhether or not the underlying LLVM value is a
FunctionDeclaration
Swift
var isAFunction: Bool { get } -
isAGlobalVariableExtension methodWhether or not the underlying LLVM value is a
GlobalVariableDeclaration
Swift
var isAGlobalVariable: Bool { get } -
isAUndefValueExtension methodWhether or not the underlying LLVM value is an
UndefValueDeclaration
Swift
var isAUndefValue: Bool { get } -
isAInstructionExtension methodWhether or not the underlying LLVM value is an
InstructionDeclaration
Swift
var isAInstruction: Bool { get } -
isABinaryOperatorExtension methodWhether or not the underlying LLVM value is a
BinaryOperatorDeclaration
Swift
var isABinaryOperator: Bool { get } -
isACallInstExtension methodWhether or not the underlying LLVM value is a
CallInstDeclaration
Swift
var isACallInst: Bool { get } -
isAIntrinsicInstExtension methodWhether or not the underlying LLVM value is an
IntrinsicInstDeclaration
Swift
var isAIntrinsicInst: Bool { get } -
isADbgInfoIntrinsicExtension methodWhether or not the underlying LLVM value is a
DbgInfoIntrinsicDeclaration
Swift
var isADbgInfoIntrinsic: Bool { get } -
isADbgDeclareInstExtension methodWhether or not the underlying LLVM value is a
DbgDeclareInstDeclaration
Swift
var isADbgDeclareInst: Bool { get } -
isAMemIntrinsicExtension methodWhether or not the underlying LLVM value is a
MemIntrinsicDeclaration
Swift
var isAMemIntrinsic: Bool { get } -
isAMemCpyInstExtension methodWhether or not the underlying LLVM value is a
MemCpyInstDeclaration
Swift
var isAMemCpyInst: Bool { get } -
isAMemMoveInstExtension methodWhether or not the underlying LLVM value is a
MemMoveInstDeclaration
Swift
var isAMemMoveInst: Bool { get } -
isAMemSetInstExtension methodWhether or not the underlying LLVM value is a
MemSetInstDeclaration
Swift
var isAMemSetInst: Bool { get } -
isACmpInstExtension methodWhether or not the underlying LLVM value is a
CmpInstDeclaration
Swift
var isACmpInst: Bool { get } -
isAFCmpInstExtension methodWhether or not the underlying LLVM value is a
FCmpInstDeclaration
Swift
var isAFCmpInst: Bool { get } -
isAICmpInstExtension methodWhether or not the underlying LLVM value is an
ICmpInstDeclaration
Swift
var isAICmpInst: Bool { get } -
isAExtractElementInstExtension methodWhether or not the underlying LLVM value is an
ExtractElementInstDeclaration
Swift
var isAExtractElementInst: Bool { get } -
isAGetElementPtrInstExtension methodWhether or not the underlying LLVM value is a
GetElementPtrInstDeclaration
Swift
var isAGetElementPtrInst: Bool { get } -
isAInsertElementInstExtension methodWhether or not the underlying LLVM value is an
InsertElementInstDeclaration
Swift
var isAInsertElementInst: Bool { get } -
isAInsertValueInstExtension methodWhether or not the underlying LLVM value is an
InsertValueInstDeclaration
Swift
var isAInsertValueInst: Bool { get } -
isALandingPadInstExtension methodWhether or not the underlying LLVM value is a
LandingPadInstDeclaration
Swift
var isALandingPadInst: Bool { get } -
isAPHINodeExtension methodWhether or not the underlying LLVM value is a
PHINodeDeclaration
Swift
var isAPHINode: Bool { get } -
isASelectInstExtension methodWhether or not the underlying LLVM value is a
SelectInstDeclaration
Swift
var isASelectInst: Bool { get } -
isAShuffleVectorInstExtension methodWhether or not the underlying LLVM value is a
ShuffleVectorInstDeclaration
Swift
var isAShuffleVectorInst: Bool { get } -
isAStoreInstExtension methodWhether or not the underlying LLVM value is a
StoreInstDeclaration
Swift
var isAStoreInst: Bool { get } -
isATerminatorInstExtension methodWhether or not the underlying LLVM value is a
TerminatorInstDeclaration
Swift
var isATerminatorInst: Bool { get } -
isABranchInstExtension methodWhether or not the underlying LLVM value is a
BranchInstDeclaration
Swift
var isABranchInst: Bool { get } -
isAIndirectBrInstExtension methodWhether or not the underlying LLVM value is an
IndirectBrInstDeclaration
Swift
var isAIndirectBrInst: Bool { get } -
isAInvokeInstExtension methodWhether or not the underlying LLVM value is an
InvokeInstDeclaration
Swift
var isAInvokeInst: Bool { get } -
isAReturnInstExtension methodWhether or not the underlying LLVM value is a
ReturnInstDeclaration
Swift
var isAReturnInst: Bool { get } -
isASwitchInstExtension methodWhether or not the underlying LLVM value is a
SwitchInstDeclaration
Swift
var isASwitchInst: Bool { get } -
isAUnreachableInstExtension methodWhether or not the underlying LLVM value is an
UnreachableInstDeclaration
Swift
var isAUnreachableInst: Bool { get } -
isAResumeInstExtension methodWhether or not the underlying LLVM value is a
ResumeInstDeclaration
Swift
var isAResumeInst: Bool { get } -
isACleanupReturnInstExtension methodWhether or not the underlying LLVM value is a
CleanupReturnInstDeclaration
Swift
var isACleanupReturnInst: Bool { get } -
isACatchReturnInstExtension methodWhether or not the underlying LLVM value is a
CatchReturnInstDeclaration
Swift
var isACatchReturnInst: Bool { get } -
isAFuncletPadInstExtension methodWhether or not the underlying LLVM value is a
FuncletPadInstDeclaration
Swift
var isAFuncletPadInst: Bool { get } -
isACatchPadInstExtension methodWhether or not the underlying LLVM value is a
CatchPadInstDeclaration
Swift
var isACatchPadInst: Bool { get } -
isACleanupPadInstExtension methodWhether or not the underlying LLVM value is a
CleanupPadInstDeclaration
Swift
var isACleanupPadInst: Bool { get } -
isAUnaryInstructionExtension methodWhether or not the underlying LLVM value is a
UnaryInstructionDeclaration
Swift
var isAUnaryInstruction: Bool { get } -
isAAllocaInstExtension methodWhether or not the underlying LLVM value is an
AllocaInstDeclaration
Swift
var isAAllocaInst: Bool { get } -
isACastInstExtension methodWhether or not the underlying LLVM value is a
CastInstDeclaration
Swift
var isACastInst: Bool { get } -
isAAddrSpaceCastInstExtension methodWhether or not the underlying LLVM value is an
AddrSpaceCastInstDeclaration
Swift
var isAAddrSpaceCastInst: Bool { get } -
isABitCastInstExtension methodWhether or not the underlying LLVM value is a
BitCastInstDeclaration
Swift
var isABitCastInst: Bool { get } -
isAFPExtInstExtension methodWhether or not the underlying LLVM value is a
FPExtInstDeclaration
Swift
var isAFPExtInst: Bool { get } -
isAFPToSIInstExtension methodWhether or not the underlying LLVM value is a
FPToSIInstDeclaration
Swift
var isAFPToSIInst: Bool { get } -
isAFPToUIInstExtension methodWhether or not the underlying LLVM value is a
FPToUIInstDeclaration
Swift
var isAFPToUIInst: Bool { get } -
isAFPTruncInstExtension methodWhether or not the underlying LLVM value is a
FPTruncInstDeclaration
Swift
var isAFPTruncInst: Bool { get } -
isAIntToPtrInstExtension methodWhether or not the underlying LLVM value is an
IntToPtrInstDeclaration
Swift
var isAIntToPtrInst: Bool { get } -
isAPtrToIntInstExtension methodWhether or not the underlying LLVM value is a
PtrToIntInstDeclaration
Swift
var isAPtrToIntInst: Bool { get } -
isASExtInstExtension methodWhether or not the underlying LLVM value is a
SExtInstDeclaration
Swift
var isASExtInst: Bool { get } -
isASIToFPInstExtension methodWhether or not the underlying LLVM value is a
SIToFPInstDeclaration
Swift
var isASIToFPInst: Bool { get } -
isATruncInstExtension methodWhether or not the underlying LLVM value is a
TruncInstDeclaration
Swift
var isATruncInst: Bool { get } -
isAUIToFPInstExtension methodWhether or not the underlying LLVM value is a
UIToFPInstDeclaration
Swift
var isAUIToFPInst: Bool { get } -
isAZExtInstExtension methodWhether or not the underlying LLVM value is a
ZExtInstDeclaration
Swift
var isAZExtInst: Bool { get } -
isAExtractValueInstExtension methodWhether or not the underlying LLVM value is a
ExtractValueInstDeclaration
Swift
var isAExtractValueInst: Bool { get } -
isALoadInstExtension methodWhether or not the underlying LLVM value is a
LoadInstDeclaration
Swift
var isALoadInst: Bool { get } -
isAVAArgInstExtension methodWhether or not the underlying LLVM value is a
VAArgInstDeclaration
Swift
var isAVAArgInst: Bool { get } -
typeExtension methodRetrieves the type of this value.
Declaration
Swift
var type: IRType { get } -
isConstantExtension methodReturns whether this value is a constant.
Declaration
Swift
var isConstant: Bool { get } -
isInstructionExtension methodReturns whether this value is an instruction.
Declaration
Swift
var isInstruction: Bool { get } -
isUndefExtension methodReturns whether this value has been initialized with the special
undefvalue.The
undefvalue can be used anywhere a constant is expected, and indicates that the user of the value may receive an unspecified bit-pattern.Declaration
Swift
var isUndef: Bool { get } -
nameExtension methodGets and sets the name for this value.
Declaration
Swift
var name: String { get set } -
replaceAllUses(with:Extension method) Replaces all uses of this value with the specified value.
Declaration
Swift
func replaceAllUses(with value: IRValue)Parameters
valueThe new value to swap in.
-
dump()Extension methodDumps a representation of this value to stderr.
Declaration
Swift
func dump() -
kindExtension methodThe kind of this value.
Declaration
Swift
var kind: IRValueKind { get }
IRValue Protocol Reference