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
-
isAArgument
Extension methodWhether or not the underlying LLVM value is an
Argument
Declaration
Swift
var isAArgument: Bool { get }
-
isABasicBlock
Extension methodWhether or not the underlying LLVM value is a
BasicBlock
Declaration
Swift
var isABasicBlock: Bool { get }
-
isAInlineAsm
Extension methodWhether or not the underlying LLVM value is
InlineAsm
Declaration
Swift
var isAInlineAsm: Bool { get }
-
isAUser
Extension methodWhether or not the underlying LLVM value is a
User
Declaration
Swift
var isAUser: Bool { get }
-
isAConstant
Extension methodWhether or not the underlying LLVM value is a
Constant
Declaration
Swift
var isAConstant: Bool { get }
-
isABlockAddress
Extension methodWhether or not the underlying LLVM value is a
BlockAddress
Declaration
Swift
var isABlockAddress: Bool { get }
-
isAConstantAggregateZero
Extension methodWhether or not the underlying LLVM value is a
ConstantAggregateZero
Declaration
Swift
var isAConstantAggregateZero: Bool { get }
-
isAConstantArray
Extension methodWhether or not the underlying LLVM value is a
ConstantArray
Declaration
Swift
var isAConstantArray: Bool { get }
-
isAConstantDataSequential
Extension methodWhether or not the underlying LLVM value is a
ConstantDataSequential
Declaration
Swift
var isAConstantDataSequential: Bool { get }
-
isAConstantDataArray
Extension methodWhether or not the underlying LLVM value is a
ConstantDataArray
Declaration
Swift
var isAConstantDataArray: Bool { get }
-
isAConstantDataVector
Extension methodWhether or not the underlying LLVM value is a
ConstantDataVector
Declaration
Swift
var isAConstantDataVector: Bool { get }
-
isAConstantExpr
Extension methodWhether or not the underlying LLVM value is a
ConstantExpr
Declaration
Swift
var isAConstantExpr: Bool { get }
-
isAConstantFP
Extension methodWhether or not the underlying LLVM value is a
ConstantFP
Declaration
Swift
var isAConstantFP: Bool { get }
-
isAConstantInt
Extension methodWhether or not the underlying LLVM value is a
ConstantInt
Declaration
Swift
var isAConstantInt: Bool { get }
-
isAConstantPointerNull
Extension methodWhether or not the underlying LLVM value is a
ConstantPointerNull
Declaration
Swift
var isAConstantPointerNull: Bool { get }
-
isAConstantStruct
Extension methodWhether or not the underlying LLVM value is a
ConstantStruct
Declaration
Swift
var isAConstantStruct: Bool { get }
-
isAConstantTokenNone
Extension methodWhether or not the underlying LLVM value is a
ConstantTokenNone
Declaration
Swift
var isAConstantTokenNone: Bool { get }
-
isAConstantVector
Extension methodWhether or not the underlying LLVM value is a
ConstantVector
Declaration
Swift
var isAConstantVector: Bool { get }
-
isAGlobalValue
Extension methodWhether or not the underlying LLVM value is a
GlobalValue
Declaration
Swift
var isAGlobalValue: Bool { get }
-
isAGlobalAlias
Extension methodWhether or not the underlying LLVM value is a
GlobalAlias
Declaration
Swift
var isAGlobalAlias: Bool { get }
-
isAGlobalObject
Extension methodWhether or not the underlying LLVM value is a
GlobalObject
Declaration
Swift
var isAGlobalObject: Bool { get }
-
isAFunction
Extension methodWhether or not the underlying LLVM value is a
Function
Declaration
Swift
var isAFunction: Bool { get }
-
isAGlobalVariable
Extension methodWhether or not the underlying LLVM value is a
GlobalVariable
Declaration
Swift
var isAGlobalVariable: Bool { get }
-
isAUndefValue
Extension methodWhether or not the underlying LLVM value is an
UndefValue
Declaration
Swift
var isAUndefValue: Bool { get }
-
isAInstruction
Extension methodWhether or not the underlying LLVM value is an
Instruction
Declaration
Swift
var isAInstruction: Bool { get }
-
isABinaryOperator
Extension methodWhether or not the underlying LLVM value is a
BinaryOperator
Declaration
Swift
var isABinaryOperator: Bool { get }
-
isACallInst
Extension methodWhether or not the underlying LLVM value is a
CallInst
Declaration
Swift
var isACallInst: Bool { get }
-
isAIntrinsicInst
Extension methodWhether or not the underlying LLVM value is an
IntrinsicInst
Declaration
Swift
var isAIntrinsicInst: Bool { get }
-
isADbgInfoIntrinsic
Extension methodWhether or not the underlying LLVM value is a
DbgInfoIntrinsic
Declaration
Swift
var isADbgInfoIntrinsic: Bool { get }
-
isADbgDeclareInst
Extension methodWhether or not the underlying LLVM value is a
DbgDeclareInst
Declaration
Swift
var isADbgDeclareInst: Bool { get }
-
isAMemIntrinsic
Extension methodWhether or not the underlying LLVM value is a
MemIntrinsic
Declaration
Swift
var isAMemIntrinsic: Bool { get }
-
isAMemCpyInst
Extension methodWhether or not the underlying LLVM value is a
MemCpyInst
Declaration
Swift
var isAMemCpyInst: Bool { get }
-
isAMemMoveInst
Extension methodWhether or not the underlying LLVM value is a
MemMoveInst
Declaration
Swift
var isAMemMoveInst: Bool { get }
-
isAMemSetInst
Extension methodWhether or not the underlying LLVM value is a
MemSetInst
Declaration
Swift
var isAMemSetInst: Bool { get }
-
isACmpInst
Extension methodWhether or not the underlying LLVM value is a
CmpInst
Declaration
Swift
var isACmpInst: Bool { get }
-
isAFCmpInst
Extension methodWhether or not the underlying LLVM value is a
FCmpInst
Declaration
Swift
var isAFCmpInst: Bool { get }
-
isAICmpInst
Extension methodWhether or not the underlying LLVM value is an
ICmpInst
Declaration
Swift
var isAICmpInst: Bool { get }
-
isAExtractElementInst
Extension methodWhether or not the underlying LLVM value is an
ExtractElementInst
Declaration
Swift
var isAExtractElementInst: Bool { get }
-
isAGetElementPtrInst
Extension methodWhether or not the underlying LLVM value is a
GetElementPtrInst
Declaration
Swift
var isAGetElementPtrInst: Bool { get }
-
isAInsertElementInst
Extension methodWhether or not the underlying LLVM value is an
InsertElementInst
Declaration
Swift
var isAInsertElementInst: Bool { get }
-
isAInsertValueInst
Extension methodWhether or not the underlying LLVM value is an
InsertValueInst
Declaration
Swift
var isAInsertValueInst: Bool { get }
-
isALandingPadInst
Extension methodWhether or not the underlying LLVM value is a
LandingPadInst
Declaration
Swift
var isALandingPadInst: Bool { get }
-
isAPHINode
Extension methodWhether or not the underlying LLVM value is a
PHINode
Declaration
Swift
var isAPHINode: Bool { get }
-
isASelectInst
Extension methodWhether or not the underlying LLVM value is a
SelectInst
Declaration
Swift
var isASelectInst: Bool { get }
-
isAShuffleVectorInst
Extension methodWhether or not the underlying LLVM value is a
ShuffleVectorInst
Declaration
Swift
var isAShuffleVectorInst: Bool { get }
-
isAStoreInst
Extension methodWhether or not the underlying LLVM value is a
StoreInst
Declaration
Swift
var isAStoreInst: Bool { get }
-
isATerminatorInst
Extension methodWhether or not the underlying LLVM value is a
TerminatorInst
Declaration
Swift
var isATerminatorInst: Bool { get }
-
isABranchInst
Extension methodWhether or not the underlying LLVM value is a
BranchInst
Declaration
Swift
var isABranchInst: Bool { get }
-
isAIndirectBrInst
Extension methodWhether or not the underlying LLVM value is an
IndirectBrInst
Declaration
Swift
var isAIndirectBrInst: Bool { get }
-
isAInvokeInst
Extension methodWhether or not the underlying LLVM value is an
InvokeInst
Declaration
Swift
var isAInvokeInst: Bool { get }
-
isAReturnInst
Extension methodWhether or not the underlying LLVM value is a
ReturnInst
Declaration
Swift
var isAReturnInst: Bool { get }
-
isASwitchInst
Extension methodWhether or not the underlying LLVM value is a
SwitchInst
Declaration
Swift
var isASwitchInst: Bool { get }
-
isAUnreachableInst
Extension methodWhether or not the underlying LLVM value is an
UnreachableInst
Declaration
Swift
var isAUnreachableInst: Bool { get }
-
isAResumeInst
Extension methodWhether or not the underlying LLVM value is a
ResumeInst
Declaration
Swift
var isAResumeInst: Bool { get }
-
isACleanupReturnInst
Extension methodWhether or not the underlying LLVM value is a
CleanupReturnInst
Declaration
Swift
var isACleanupReturnInst: Bool { get }
-
isACatchReturnInst
Extension methodWhether or not the underlying LLVM value is a
CatchReturnInst
Declaration
Swift
var isACatchReturnInst: Bool { get }
-
isAFuncletPadInst
Extension methodWhether or not the underlying LLVM value is a
FuncletPadInst
Declaration
Swift
var isAFuncletPadInst: Bool { get }
-
isACatchPadInst
Extension methodWhether or not the underlying LLVM value is a
CatchPadInst
Declaration
Swift
var isACatchPadInst: Bool { get }
-
isACleanupPadInst
Extension methodWhether or not the underlying LLVM value is a
CleanupPadInst
Declaration
Swift
var isACleanupPadInst: Bool { get }
-
isAUnaryInstruction
Extension methodWhether or not the underlying LLVM value is a
UnaryInstruction
Declaration
Swift
var isAUnaryInstruction: Bool { get }
-
isAAllocaInst
Extension methodWhether or not the underlying LLVM value is an
AllocaInst
Declaration
Swift
var isAAllocaInst: Bool { get }
-
isACastInst
Extension methodWhether or not the underlying LLVM value is a
CastInst
Declaration
Swift
var isACastInst: Bool { get }
-
isAAddrSpaceCastInst
Extension methodWhether or not the underlying LLVM value is an
AddrSpaceCastInst
Declaration
Swift
var isAAddrSpaceCastInst: Bool { get }
-
isABitCastInst
Extension methodWhether or not the underlying LLVM value is a
BitCastInst
Declaration
Swift
var isABitCastInst: Bool { get }
-
isAFPExtInst
Extension methodWhether or not the underlying LLVM value is a
FPExtInst
Declaration
Swift
var isAFPExtInst: Bool { get }
-
isAFPToSIInst
Extension methodWhether or not the underlying LLVM value is a
FPToSIInst
Declaration
Swift
var isAFPToSIInst: Bool { get }
-
isAFPToUIInst
Extension methodWhether or not the underlying LLVM value is a
FPToUIInst
Declaration
Swift
var isAFPToUIInst: Bool { get }
-
isAFPTruncInst
Extension methodWhether or not the underlying LLVM value is a
FPTruncInst
Declaration
Swift
var isAFPTruncInst: Bool { get }
-
isAIntToPtrInst
Extension methodWhether or not the underlying LLVM value is an
IntToPtrInst
Declaration
Swift
var isAIntToPtrInst: Bool { get }
-
isAPtrToIntInst
Extension methodWhether or not the underlying LLVM value is a
PtrToIntInst
Declaration
Swift
var isAPtrToIntInst: Bool { get }
-
isASExtInst
Extension methodWhether or not the underlying LLVM value is a
SExtInst
Declaration
Swift
var isASExtInst: Bool { get }
-
isASIToFPInst
Extension methodWhether or not the underlying LLVM value is a
SIToFPInst
Declaration
Swift
var isASIToFPInst: Bool { get }
-
isATruncInst
Extension methodWhether or not the underlying LLVM value is a
TruncInst
Declaration
Swift
var isATruncInst: Bool { get }
-
isAUIToFPInst
Extension methodWhether or not the underlying LLVM value is a
UIToFPInst
Declaration
Swift
var isAUIToFPInst: Bool { get }
-
isAZExtInst
Extension methodWhether or not the underlying LLVM value is a
ZExtInst
Declaration
Swift
var isAZExtInst: Bool { get }
-
isAExtractValueInst
Extension methodWhether or not the underlying LLVM value is a
ExtractValueInst
Declaration
Swift
var isAExtractValueInst: Bool { get }
-
isALoadInst
Extension methodWhether or not the underlying LLVM value is a
LoadInst
Declaration
Swift
var isALoadInst: Bool { get }
-
isAVAArgInst
Extension methodWhether or not the underlying LLVM value is a
VAArgInst
Declaration
Swift
var isAVAArgInst: Bool { get }
-
type
Extension methodRetrieves the type of this value.
Declaration
Swift
var type: IRType { get }
-
isConstant
Extension methodReturns whether this value is a constant.
Declaration
Swift
var isConstant: Bool { get }
-
isInstruction
Extension methodReturns whether this value is an instruction.
Declaration
Swift
var isInstruction: Bool { get }
-
isUndef
Extension methodReturns whether this value has been initialized with the special
undef
value.The
undef
value 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 }
-
name
Extension 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
value
The new value to swap in.
-
dump()
Extension methodDumps a representation of this value to stderr.
Declaration
Swift
func dump()
-
kind
Extension methodThe kind of this value.
Declaration
Swift
var kind: IRValueKind { get }