32 #define DEBUG_TYPE "memory-builtins"
58 {LibFunc_ZnwjRKSt9nothrow_t, {
MallocLike, 2, 0, -1}},
60 {LibFunc_ZnwmRKSt9nothrow_t, {
MallocLike, 2, 0, -1}},
62 {LibFunc_ZnajRKSt9nothrow_t, {
MallocLike, 2, 0, -1}},
64 {LibFunc_ZnamRKSt9nothrow_t, {
MallocLike, 2, 0, -1}},
65 {LibFunc_msvc_new_int, {
OpNewLike, 1, 0, -1}},
66 {LibFunc_msvc_new_int_nothrow, {
MallocLike, 2, 0, -1}},
67 {LibFunc_msvc_new_longlong, {
OpNewLike, 1, 0, -1}},
68 {LibFunc_msvc_new_longlong_nothrow, {
MallocLike, 2, 0, -1}},
69 {LibFunc_msvc_new_array_int, {
OpNewLike, 1, 0, -1}},
70 {LibFunc_msvc_new_array_int_nothrow, {
MallocLike, 2, 0, -1}},
71 {LibFunc_msvc_new_array_longlong, {
OpNewLike, 1, 0, -1}},
72 {LibFunc_msvc_new_array_longlong_nothrow, {
MallocLike, 2, 0, -1}},
84 if (isa<IntrinsicInst>(V))
87 if (LookThroughBitCast)
111 if (!TLI || !TLI->
getLibFunc(FnName, TLIFn) || !TLI->
has(TLIFn))
116 return P.first == TLIFn;
145 bool LookThroughBitCast =
false) {
146 bool IsNoBuiltinCall;
149 if (!IsNoBuiltinCall)
156 bool IsNoBuiltinCall;
164 if (!IsNoBuiltinCall)
181 Result.
SndParam = Args.second.getValueOr(-1);
195 bool LookThroughBitCast) {
202 bool LookThroughBitCast) {
212 bool LookThroughBitCast) {
219 bool LookThroughBitCast) {
226 bool LookThroughBitCast) {
228 LookThroughBitCast).hasValue();
234 bool LookThroughBitCast) {
248 bool LookThroughSExt =
false) {
264 Value *Multiple =
nullptr;
265 if (
ComputeMultiple(MallocArg, ElementSize, Multiple, LookThroughSExt))
281 unsigned NumOfBitCastUses = 0;
286 if (
const BitCastInst *BCI = dyn_cast<BitCastInst>(*UI++)) {
287 MallocType = cast<PointerType>(BCI->getDestTy());
292 if (NumOfBitCastUses == 1)
296 if (NumOfBitCastUses == 0)
297 return cast<PointerType>(CI->
getType());
321 bool LookThroughSExt) {
338 if (!CI || isa<IntrinsicInst>(CI))
341 if (Callee ==
nullptr)
346 if (!TLI || !TLI->
getLibFunc(FnName, TLIFn) || !TLI->
has(TLIFn))
349 unsigned ExpectedNumParams;
350 if (TLIFn == LibFunc_free ||
351 TLIFn == LibFunc_ZdlPv ||
352 TLIFn == LibFunc_ZdaPv ||
353 TLIFn == LibFunc_msvc_delete_ptr32 ||
354 TLIFn == LibFunc_msvc_delete_ptr64 ||
355 TLIFn == LibFunc_msvc_delete_array_ptr32 ||
356 TLIFn == LibFunc_msvc_delete_array_ptr64)
357 ExpectedNumParams = 1;
358 else if (TLIFn == LibFunc_ZdlPvj ||
359 TLIFn == LibFunc_ZdlPvm ||
360 TLIFn == LibFunc_ZdlPvRKSt9nothrow_t ||
361 TLIFn == LibFunc_ZdaPvj ||
362 TLIFn == LibFunc_ZdaPvm ||
363 TLIFn == LibFunc_ZdaPvRKSt9nothrow_t ||
364 TLIFn == LibFunc_msvc_delete_ptr32_int ||
365 TLIFn == LibFunc_msvc_delete_ptr64_longlong ||
366 TLIFn == LibFunc_msvc_delete_ptr32_nothrow ||
367 TLIFn == LibFunc_msvc_delete_ptr64_nothrow ||
368 TLIFn == LibFunc_msvc_delete_array_ptr32_int ||
369 TLIFn == LibFunc_msvc_delete_array_ptr64_longlong ||
370 TLIFn == LibFunc_msvc_delete_array_ptr32_nothrow ||
371 TLIFn == LibFunc_msvc_delete_array_ptr64_nothrow)
372 ExpectedNumParams = 2;
396 if (Data.second.isNegative() || Data.first.ult(Data.second))
397 return APInt(Data.first.getBitWidth(), 0);
398 return Data.first - Data.second;
409 if (!Visitor.bothKnown(Data))
421 "ObjectSize must be a call to llvm.objectsize!");
439 auto *ResultType = cast<IntegerType>(ObjectSize->
getType());
451 "Number of arguments with unsolved size and offset");
453 "Number of load instructions with unsolved size and offset");
466 : DL(DL), TLI(TLI), Options(Options) {
479 if (!SeenInsts.insert(
I).second)
497 if (CE->getOpcode() == Instruction::IntToPtr)
499 if (CE->getOpcode() == Instruction::GetElementPtr)
503 DEBUG(
dbgs() <<
"ObjectSizeOffsetVisitor::compute() unhandled value: " << *V
513 bool ObjectSizeOffsetVisitor::CheckedZextOrTrunc(
APInt &
I) {
530 return std::make_pair(align(Size, I.
getAlignment()), Zero);
533 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(ArraySize)) {
534 APInt NumElems =
C->getValue();
535 if (!CheckedZextOrTrunc(NumElems))
539 Size = Size.
umul_ov(NumElems, Overflow);
540 return Overflow ? unknown() : std::make_pair(align(Size, I.
getAlignment()),
549 ++ObjectVisitorArgument;
576 if (Size.
ugt(MaxSize))
579 return std::make_pair(Size, Zero);
587 if (!CheckedZextOrTrunc(Size))
592 return std::make_pair(Size, Zero);
599 if (!CheckedZextOrTrunc(NumElems))
603 Size = Size.
umul_ov(NumElems, Overflow);
604 return Overflow ? unknown() : std::make_pair(Size, Zero);
619 return std::make_pair(Zero, Zero);
639 return std::make_pair(PtrData.first, PtrData.second + Offset);
653 return std::make_pair(align(Size, GV.
getAlignment()), Zero);
675 if (TrueSide == FalseSide) {
682 if (TrueResult == FalseResult) {
686 if (TrueResult.
slt(FalseResult))
691 if (TrueResult.
sgt(FalseResult))
700 return std::make_pair(Zero, Zero);
704 DEBUG(
dbgs() <<
"ObjectSizeOffsetVisitor unknown instruction:" << I <<
'\n');
711 : DL(DL), TLI(TLI), Context(Context), Builder(Context,
TargetFolder(DL)),
712 RoundToAlign(RoundToAlign) {
728 for (
const Value *SeenVal : SeenVals) {
731 if (CacheIt != CacheMap.
end() &&
anyKnown(CacheIt->second))
732 CacheMap.
erase(CacheIt);
746 if (Visitor.bothKnown(Const))
754 if (CacheIt != CacheMap.
end())
755 return CacheIt->second;
769 if (!SeenVals.
insert(V).second) {
773 }
else if (
Instruction *I = dyn_cast<Instruction>(V)) {
775 }
else if (isa<Argument>(V) ||
776 (isa<ConstantExpr>(V) &&
777 cast<ConstantExpr>(V)->getOpcode() == Instruction::IntToPtr) ||
778 isa<GlobalAlias>(V) ||
779 isa<GlobalVariable>(V)) {
783 DEBUG(
dbgs() <<
"ObjectSizeOffsetEvaluator::compute() unhandled value: "
789 CacheMap[V] = Result;
802 Size = Builder.
CreateMul(Size, ArraySize);
803 return std::make_pair(Size, Zero);
818 FirstArg = Builder.
CreateZExt(FirstArg, IntTy);
820 return std::make_pair(FirstArg, Zero);
823 SecondArg = Builder.
CreateZExt(SecondArg, IntTy);
825 return std::make_pair(Size, Zero);
853 Offset = Builder.
CreateAdd(PtrData.second, Offset);
854 return std::make_pair(PtrData.first, Offset);
872 CacheMap[&PHI] = std::make_pair(SizePHI, OffsetPHI);
901 return std::make_pair(Size, Offset);
910 if (TrueSide == FalseSide)
917 return std::make_pair(Size, Offset);
921 DEBUG(
dbgs() <<
"ObjectSizeOffsetEvaluator unknown instruction:" << I <<
'\n');
bool getObjectSize(const Value *Ptr, uint64_t &Size, const DataLayout &DL, const TargetLibraryInfo *TLI, ObjectSizeOpts Opts={})
Compute the size of the object pointed by Ptr.
Value * EmitGEPOffset(IRBuilderTy *Builder, const DataLayout &DL, User *GEP, bool NoAssumptions=false)
Given a getelementptr instruction/constantexpr, emit the code necessary to compute the offset from th...
SymbolTableList< Instruction >::iterator eraseFromParent()
This method unlinks 'this' from the containing basic block and deletes it.
bool isAllocationFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a library function that allocates or reallocates memory (eith...
A parsed version of the target data layout string in and methods for querying it. ...
const_iterator end(StringRef path)
Get end iterator over path.
static const std::pair< LibFunc, AllocFnsTy > AllocationFnData[]
void addIncoming(Value *V, BasicBlock *BB)
Add an incoming value to the end of the PHI list.
LLVMContext & getContext() const
getContext - Return a reference to the LLVMContext associated with this function. ...
This class represents an incoming formal argument to a Function.
uint64_t getZExtValue() const
Get zero extended value.
STATISTIC(NumFunctions,"Total number of functions")
unsigned getNumParams() const
Return the number of fixed parameters this function type requires.
Intrinsic::ID getIntrinsicID() const
Return the intrinsic ID of this intrinsic.
const CallInst * extractCallocCall(const Value *I, const TargetLibraryInfo *TLI)
extractCallocCall - Returns the corresponding CallInst if the instruction is a calloc call...
const Value * stripPointerCasts() const
Strip off pointer casts, all-zero GEPs, and aliases.
bool hasByValOrInAllocaAttr() const
Return true if this argument has the byval attribute or inalloca attribute.
unsigned getNumOperands() const
unsigned getPointerTypeSizeInBits(Type *) const
Layout pointer size, in bits, based on the type.
bool NullIsUnknownSize
If this is true, null pointers in address space 0 will be treated as though they can't be evaluated...
This class represents a function call, abstracting a target machine's calling convention.
static Optional< AllocFnsTy > getAllocationDataForFunction(const Function *Callee, AllocType AllocTy, const TargetLibraryInfo *TLI)
Returns the allocation data for the given value if it's either a call to a known allocation function...
bool RoundToAlign
Whether to round the result up to the alignment of allocas, byval arguments, and global variables...
SizeOffsetType visitAllocaInst(AllocaInst &I)
The two locations do not alias at all.
Attribute getFnAttribute(Attribute::AttrKind Kind) const
Return the attribute for the given attribute kind.
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
unsigned getAddressSpace() const
Return the address space of the Pointer type.
An instruction for reading from memory.
bool getLibFunc(StringRef funcName, LibFunc &F) const
Searches for a particular function name.
SizeOffsetType visitArgument(Argument &A)
Type * getElementType() const
APInt zextOrTrunc(unsigned width) const
Zero extend or truncate to width.
const Constant * getAliasee() const
bool isNoBuiltin() const
Return true if the call should not be treated as a call to a builtin.
const CallInst * isFreeCall(const Value *I, const TargetLibraryInfo *TLI)
isFreeCall - Returns non-null if the value is a call to the builtin free()
StringRef getName() const
Return a constant reference to the value's name.
bool isArrayAllocation() const
Return true if there is an allocation size parameter to the allocation instruction that is not 1...
This class represents the LLVM 'select' instruction.
SizeOffsetEvalType visitGEPOperator(GEPOperator &GEP)
const StructLayout * getStructLayout(StructType *Ty) const
Returns a StructLayout object, indicating the alignment of the struct, its size, and the offsets of i...
SizeOffsetType visitExtractValueInst(ExtractValueInst &I)
SizeOffsetType visitGEPOperator(GEPOperator &GEP)
const APInt & getValue() const
Return the constant as an APInt value reference.
'undef' values are things that do not have specified contents.
std::pair< unsigned, Optional< unsigned > > getAllocSizeArgs() const
Returns the argument numbers for the allocsize attribute (or pair(0, 0) if not known).
static Optional< AllocFnsTy > getAllocationSize(const Value *V, const TargetLibraryInfo *TLI)
Class to represent struct types.
SizeOffsetEvalType visitCallSite(CallSite CS)
SizeOffsetType visitIntToPtrInst(IntToPtrInst &)
Value * CreateAdd(Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
ObjectSizeOffsetEvaluator(const DataLayout &DL, const TargetLibraryInfo *TLI, LLVMContext &Context, bool RoundToAlign=false)
void visit(Iterator Start, Iterator End)
bool isNoAliasFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a function that returns a NoAlias pointer (including malloc/c...
Same as Min, except we pick the maximum size of all of the branches.
A constant value that is initialized with an expression using other constant values.
Class to represent function types.
APInt zextOrSelf(unsigned width) const
Zero extend or truncate to width.
LLVMContext & getContext() const
Return the LLVMContext in which this type was uniqued.
bool accumulateConstantOffset(const DataLayout &DL, APInt &Offset) const
Accumulate the constant address offset of this GEP if possible.
Evaluate all branches of an unknown condition.
unsigned getAlignment() const
bool sgt(const APInt &RHS) const
Signed greather than comparison.
This class represents a no-op cast from one type to another.
unsigned getActiveBits() const
Compute the number of active bits in the value.
TargetFolder - Create constants with target dependent folding.
std::pair< APInt, APInt > SizeOffsetType
bool hasDefinitiveInitializer() const
hasDefinitiveInitializer - Whether the global variable has an initializer, and any other instances of...
void replaceAllUsesWith(Value *V)
Change all uses of this to point to a new Value.
APInt umul_ov(const APInt &RHS, bool &Overflow) const
Value * CreateZExt(Value *V, Type *DestTy, const Twine &Name="")
uint64_t GetStringLength(const Value *V, unsigned CharSize=8)
If we can compute the length of the string pointed to by the specified pointer, return 'len+1'...
SizeOffsetType visitInstruction(Instruction &I)
void SetInsertPoint(BasicBlock *TheBB)
This specifies that created instructions should be appended to the end of the specified block...
Class to represent pointers.
unsigned getNumIncomingValues() const
Return the number of incoming edges.
iterator find(const_arg_type_t< KeyT > Val)
Value * getMallocArraySize(CallInst *CI, const DataLayout &DL, const TargetLibraryInfo *TLI, bool LookThroughSExt=false)
getMallocArraySize - Returns the array size of a malloc call.
SizeOffsetType visitGlobalVariable(GlobalVariable &GV)
bool isSized(SmallPtrSetImpl< Type * > *Visited=nullptr) const
Return true if it makes sense to take the size of this type.
Type * getParamType(unsigned i) const
Parameter type accessors.
bool erase(const KeyT &Val)
SizeOffsetEvalType visitSelectInst(SelectInst &I)
ConstantInt * lowerObjectSizeCall(IntrinsicInst *ObjectSize, const DataLayout &DL, const TargetLibraryInfo *TLI, bool MustSucceed)
Try to turn a call to .objectsize into an integer value of the given Type.
Value * hasConstantValue() const
If the specified PHI node always merges together the same value, return the value, otherwise return null.
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.
FunctionType * getFunctionType() const
Returns the FunctionType for me.
const CallInst * extractMallocCall(const Value *I, const TargetLibraryInfo *TLI)
extractMallocCall - Returns the corresponding CallInst if the instruction is a malloc call...
const Value * getCondition() const
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
Value * CreateSelect(Value *C, Value *True, Value *False, const Twine &Name="", Instruction *MDFrom=nullptr)
const_iterator getFirstInsertionPt() const
Returns an iterator to the first instruction in this block that is suitable for inserting a non-PHI i...
unsigned getAlignment() const
Return the alignment of the memory that is being allocated by the instruction.
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
unsigned getParamAlignment() const
If this is a byval or inalloca argument, return its alignment.
static Value * computeArraySize(const CallInst *CI, const DataLayout &DL, const TargetLibraryInfo *TLI, bool LookThroughSExt=false)
static APInt getSizeWithOverflow(const SizeOffsetType &Data)
BasicBlock * getIncomingBlock(unsigned i) const
Return incoming basic block number i.
unsigned getBitWidth() const
Return the number of bits in the APInt.
Value * getPointerOperand()
static bool hasNoAliasAttr(const Value *V, bool LookThroughBitCast)
static Optional< AllocFnsTy > getAllocationData(const Value *V, AllocType AllocTy, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
This class represents a cast from an integer to a pointer.
static UndefValue * get(Type *T)
Static factory methods - Return an 'undef' object of the specified type.
SizeOffsetType visitCallSite(CallSite CS)
LLVMContext & getContext() const
All values hold a context through their type.
static PointerType * getInt8PtrTy(LLVMContext &C, unsigned AS=0)
const Value * getTrueValue() const
PointerType * getMallocType(const CallInst *CI, const TargetLibraryInfo *TLI)
getMallocType - Returns the PointerType resulting from the malloc call.
Value * CreateMul(Value *LHS, Value *RHS, const Twine &Name="", bool HasNUW=false, bool HasNSW=false)
SizeOffsetType visitSelectInst(SelectInst &I)
SizeOffsetType visitExtractElementInst(ExtractElementInst &I)
SizeOffsetType visitGlobalAlias(GlobalAlias &GA)
bool ugt(const APInt &RHS) const
Unsigned greather than comparison.
PHINode * CreatePHI(Type *Ty, unsigned NumReservedValues, const Twine &Name="")
IntegerType * getIntPtrType(LLVMContext &C, unsigned AddressSpace=0) const
Returns an integer type with size at least as big as that of a pointer in the given address space...
SizeOffsetEvalType visitInstruction(Instruction &I)
Mode EvalMode
How we want to evaluate this object's size.
This is the shared class of boolean and integer constants.
InstrTy * getInstruction() const
Value * getIncomingValue(unsigned i) const
Return incoming value number x.
uint64_t getTypeAllocSize(Type *Ty) const
Returns the offset in bytes between successive objects of the specified type, including alignment pad...
Evaluate the size and offset of an object pointed to by a Value* statically.
ValTy * getArgument(unsigned ArgNo) const
Module.h This file contains the declarations for the Module class.
Type * getType() const
All values are typed, get the type of this value.
Provides information about what library functions are available for the current target.
SizeOffsetType visitPHINode(PHINode &)
A constant pointer value that points to null.
uint64_t getSizeInBytes() const
SizeOffsetType visitUndefValue(UndefValue &)
static Constant * get(Type *Ty, uint64_t V, bool isSigned=false)
If Ty is a vector type, return a Constant with a splat of the given value.
Function * getCalledFunction() const
Return the function called, or null if this is an indirect function invocation.
static const Function * getCalledFunction(const Value *V, bool LookThroughBitCast, bool &IsNoBuiltin)
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
SizeOffsetType compute(Value *V)
Value * getArgOperand(unsigned i) const
getArgOperand/setArgOperand - Return/set the i-th call argument.
Class for arbitrary precision integers.
std::pair< Value *, Value * > SizeOffsetEvalType
SizeOffsetEvalType visitIntToPtrInst(IntToPtrInst &)
bool isIntegerTy() const
True if this is an instance of IntegerType.
Type * getMallocAllocatedType(const CallInst *CI, const TargetLibraryInfo *TLI)
getMallocAllocatedType - Returns the Type allocated by malloc call.
SizeOffsetEvalType visitPHINode(PHINode &PHI)
bool isMallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a library function that allocates uninitialized memory (such ...
user_iterator_impl< const User > const_user_iterator
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
Fail to evaluate an unknown condition.
SizeOffsetEvalType compute(Value *V)
static bool isZero(Value *V, const DataLayout &DL, DominatorTree *DT, AssumptionCache *AC)
PointerType * getType() const
Global values are always pointers.
ObjectSizeOffsetVisitor(const DataLayout &DL, const TargetLibraryInfo *TLI, LLVMContext &Context, ObjectSizeOpts Options={})
bool isDeclaration() const
Return true if the primary definition of this global value is outside of the current translation unit...
SizeOffsetEvalType visitLoadInst(LoadInst &I)
bool isMallocOrCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a library function that allocates memory similar to malloc or...
DenseMapIterator< const Value *, WeakEvalType, DenseMapInfo< const Value * >, detail::DenseMapPair< const Value *, WeakEvalType > > iterator
Establish a view to a call site for examination.
bool isCallocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a library function that allocates zero-filled memory (such as...
bool isAllocLikeFn(const Value *V, const TargetLibraryInfo *TLI, bool LookThroughBitCast=false)
Tests if a value is a call or invoke to a library function that allocates memory (either malloc...
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
bool ComputeMultiple(Value *V, unsigned Base, Value *&Multiple, bool LookThroughSExt=false, unsigned Depth=0)
This function computes the integer multiple of Base that equals V.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
PointerType * getType() const
Specialize the getType() method to always return an PointerType, which reduces the amount of casting ...
bool isInterposable() const
Return true if this global's definition can be substituted with an arbitrary definition at link time...
bool anyKnown(SizeOffsetEvalType SizeOffset)
Type * getReturnType() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
user_iterator user_begin()
static bool bothKnown(const SizeOffsetType &SizeOffset)
FunTy * getCalledFunction() const
Return the function being called if this is a direct call, otherwise return null (if it's an indirect...
LLVM Value Representation.
SizeOffsetEvalType visitExtractElementInst(ExtractElementInst &I)
const Value * getArraySize() const
Get the number of elements allocated.
const Value * getFalseValue() const
StringRef - Represent a constant reference to a string, i.e.
Various options to control the behavior of getObjectSize.
static APInt getNullValue(unsigned numBits)
Get the '0' value.
auto find_if(R &&Range, UnaryPredicate P) -> decltype(std::begin(Range))
Provide wrappers to std::find_if which take ranges instead of having to pass begin/end explicitly...
bool isUIntN(unsigned N, uint64_t x)
Checks if an unsigned integer fits into the given (dynamic) bit width.
Type * getAllocatedType() const
Return the type that is being allocated by the instruction.
SizeOffsetType visitLoadInst(LoadInst &I)
SizeOffsetEvalType visitAllocaInst(AllocaInst &I)
bool bothKnown(SizeOffsetEvalType SizeOffset)
SizeOffsetType visitConstantPointerNull(ConstantPointerNull &)
SizeOffsetEvalType visitExtractValueInst(ExtractValueInst &I)
bool has(LibFunc F) const
Tests whether a library function is available.
A wrapper class for inspecting calls to intrinsic functions.
bool isVoidTy() const
Return true if this is 'void'.
an instruction to allocate memory on the stack
bool slt(const APInt &RHS) const
Signed less than comparison.