/external/llvm/lib/Support/ |
StringRef.cpp | 11 #include "llvm/ADT/APInt.h" 406 bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const { 425 Result = APInt(64, 0); 440 APInt RadixAP, CharAP; // unused unless !IsPowerOf2Radix 443 RadixAP = APInt(BitWidth, Radix); 444 CharAP = APInt(BitWidth, 0);
|
Android.mk | 6 APInt.cpp \
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
ExternalFunctions.cpp | 229 case 8: Result.IntVal = APInt(8 , *(int8_t *) ret.data()); break; 230 case 16: Result.IntVal = APInt(16, *(int16_t*) ret.data()); break; 231 case 32: Result.IntVal = APInt(32, *(int32_t*) ret.data()); break; 232 case 64: Result.IntVal = APInt(64, *(int64_t*) ret.data()); break; 341 GV.IntVal = APInt(32, strlen(FmtStr)); 437 GV.IntVal = APInt(32, sscanf(Args[0], Args[1], Args[2], Args[3], Args[4], 453 GV.IntVal = APInt(32, scanf( Args[0], Args[1], Args[2], Args[3], Args[4],
|
Execution.cpp | 15 #include "llvm/ADT/APInt.h" 115 Dest.IntVal = APInt(1,Src1.IntVal.OP(Src2.IntVal)); \ 123 Dest.AggregateVal[_i].IntVal = APInt(1, \ 133 Dest.IntVal = APInt(1,(void*)(intptr_t)Src1.PointerVal OP \ 305 Dest.IntVal = APInt(1,Src1.TY##Val OP Src2.TY##Val); \ 312 Dest.AggregateVal[_i].IntVal = APInt(1, \ 341 Dest.IntVal = APInt(1,false); \ 346 Dest.IntVal = APInt(1,false); \ 357 Dest.AggregateVal[_i].IntVal = APInt(1,FLAG); \ 359 Dest.AggregateVal[_i].IntVal = APInt(1,!FLAG); [all...] |
/external/llvm/lib/Target/XCore/ |
XCoreISelLowering.cpp | 417 APInt KnownZero, KnownOne; 677 APInt HighMask = APInt::getHighBitsSet(64, 32); [all...] |
XCoreISelLowering.h | 186 APInt &KnownZero, 187 APInt &KnownOne,
|
/external/llvm/include/llvm/IR/ |
PatternMatch.h | 162 const APInt *&Res; 163 apint_match(const APInt *&R) : Res(R) {} 182 /// specified pointer to the contained APInt. 183 inline apint_match m_APInt(const APInt *&Res) { return Res; } 191 const APInt &CIV = CI->getValue(); 227 /// that satisfy a specified predicate, and bind them to an APInt. 230 const APInt *&Res; 231 api_pred_ty(const APInt *&R) : Res(R) {} 253 bool isValue(const APInt &C) { return C == 1; } 258 inline api_pred_ty<is_one> m_One(const APInt *&V) { return V; [all...] |
Value.h | 26 class APInt; 409 /// Stores the resulting constant offset stripped into the APInt provided. 410 /// The provided APInt will be extended or truncated as needed to be the 415 APInt &Offset); 417 APInt &Offset) const {
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineMulDivRem.cpp | 81 APInt LHSExt = C1->getValue(), RHSExt = C2->getValue(); 90 APInt MulExt = LHSExt * RHSExt; 93 return MulExt.ugt(APInt::getLowBitsSet(W * 2, W)); 95 APInt Min = APInt::getSignedMinValue(W).sext(W * 2); 96 APInt Max = APInt::getSignedMaxValue(W).sext(W * 2); 106 const APInt *IVal; 139 const APInt *IVal; 170 const APInt & Val = CI->getValue() [all...] |
InstCombineCasts.cpp | 376 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); 402 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) && 519 const APInt &Op1CV = Op1C->getValue(); 555 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 558 APInt KnownZeroMask(~KnownZero); 602 APInt KnownZeroLHS(BitWidth, 0), KnownOneLHS(BitWidth, 0); 603 APInt KnownZeroRHS(BitWidth, 0), KnownOneRHS(BitWidth, 0); 608 APInt KnownBits = KnownZeroLHS | KnownOneLHS; 609 APInt UnknownBit = ~KnownBits [all...] |
/external/llvm/lib/Analysis/IPA/ |
InlineCost.cpp | 91 DenseMap<Value *, std::pair<Value *, APInt> > ConstantOffsetPtrs; 102 bool accumulateGEPOffset(GEPOperator &GEP, APInt &Offset); 237 /// \brief Accumulate a constant GEP offset into an APInt if possible. 241 bool CallAnalyzer::accumulateGEPOffset(GEPOperator &GEP, APInt &Offset) { 262 Offset += APInt(IntPtrWidth, SL->getElementOffset(ElementIdx)); 266 APInt TypeSize(IntPtrWidth, DL->getTypeAllocSize(GTI.getIndexedType())); 328 std::pair<Value *, APInt> BaseAndOffset = ConstantOffsetPtrs.lookup(Ptr); 377 std::pair<Value *, APInt> BaseAndOffset 409 std::pair<Value *, APInt> BaseAndOffset 447 std::pair<Value *, APInt> BaseAndOffset = ConstantOffsetPtrs.lookup(Op) [all...] |
/external/llvm/lib/Analysis/ |
TargetTransformInfo.cpp | 148 unsigned TargetTransformInfo::getIntImmCost(const APInt &Imm, Type *Ty) const { 153 const APInt &Imm, Type *Ty) const { 158 const APInt &Imm, Type *Ty) const { 539 unsigned getIntImmCost(const APInt &Imm, Type *Ty) const override { 543 unsigned getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, 548 unsigned getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
|
/external/llvm/examples/BrainF/ |
BrainFDriver.cpp | 85 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb);
|
/external/llvm/examples/Fibonacci/ |
fibonacci.cpp | 130 Args[0].IntVal = APInt(32, n);
|
/external/llvm/lib/ExecutionEngine/ |
ExecutionEngine.cpp | 367 GVArgc.IntVal = APInt(32, argv.size()); 586 // Although the value is undefined, we still have to construct an APInt 588 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); 599 APInt(ElemTy->getPrimitiveSizeInBits(), 0); 617 APInt(ElemTy->getPrimitiveSizeInBits(), 0); 630 APInt Offset(DL->getPointerSizeInBits(), 0); 697 case Instruction::FPToUI: // double->APInt conversion handles sign 720 GV.IntVal = APInt(PtrWidth, uintptr_t(GV.PointerVal)); 747 GV.IntVal = APInt::floatToBits(GV.FloatVal); 751 GV.IntVal = APInt::doubleToBits(GV.DoubleVal) [all...] |
/external/llvm/lib/Target/Mips/ |
MipsISelDAGToDAG.h | 84 virtual bool selectVSplat(SDNode *N, APInt &Imm) const;
|
MipsSEISelDAGToDAG.cpp | 410 bool MipsSEDAGToDAGISel::selectVSplat(SDNode *N, APInt &Imm) const { 419 APInt SplatValue, SplatUndef; 452 APInt ImmValue; 527 APInt ImmValue; 558 APInt ImmValue; 591 APInt ImmValue; 612 APInt ImmValue; 809 APInt SplatValue, SplatUndef;
|
/external/llvm/lib/Target/R600/ |
SIISelLowering.h | 57 bool shouldConvertConstantLoadToIntImm(const APInt &Imm,
|
AMDGPUISelLowering.h | 153 APInt &KnownZero, 154 APInt &KnownOne,
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
MCJITTest.cpp | 133 ConstantInt::get(Context, APInt(32, 1))); 165 endFunctionWithRet(Inner, ConstantInt::get(Context, APInt(32, innerRetVal)));
|
MCJITTestBase.h | 88 Value *ReturnVal = ConstantInt::get(Context, APInt(32, returnCode)); 133 Constant *IV = ConstantInt::get(Context, APInt(32, InitialValue)); 165 Value *Zero = ConstantInt::get(Context, APInt(32, 0)); 176 Value *One = ConstantInt::get(Context, APInt(32, 1));
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
SelectionDAG.cpp | [all...] |
/external/llvm/lib/IR/ |
MDBuilder.cpp | 51 MDNode *MDBuilder::createRange(const APInt &Lo, const APInt &Hi) {
|
/external/llvm/lib/Target/Sparc/ |
SparcISelLowering.h | 64 APInt &KnownZero, 65 APInt &KnownOne,
|
/art/compiler/sea_ir/code_gen/ |
code_gen.cc | 127 llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt(32, instruction->GetConstValue()))); 134 llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt(32, instruction->GetConstValue()))); 171 llvm::APInt(32, instruction->GetConstValue())); 190 llvm::Value* right = llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt(32, 0)); 207 parameter_values.push_back(llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt(32, 0))); 246 llvm::ConstantInt::get(*llvm_data_->context_, llvm::APInt::getNullValue(32)),
|