/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 116 Dest.IntVal = APInt(1,Src1.IntVal.OP(Src2.IntVal)); \ 124 Dest.AggregateVal[_i].IntVal = APInt(1, \ 125 Src1.AggregateVal[_i].IntVal.OP(Src2.AggregateVal[_i].IntVal));\ 134 Dest.IntVal = APInt(1,(void*)(intptr_t)Src1.PointerVal OP \ 306 Dest.IntVal = APInt(1,Src1.TY##Val OP Src2.TY##Val); \ 313 Dest.AggregateVal[_i].IntVal = APInt(1, \ 342 Dest.IntVal = APInt(1,false); \ 347 Dest.IntVal = APInt(1,false); \ 358 Dest.AggregateVal[_i].IntVal = APInt(1,FLAG); \ 360 Dest.AggregateVal[_i].IntVal = APInt(1,!FLAG); \ [all …]
|
D | ExternalFunctions.cpp | 139 *I8Ptr = (int8_t) AV.IntVal.getZExtValue(); in ffiValueFor() 144 *I16Ptr = (int16_t) AV.IntVal.getZExtValue(); in ffiValueFor() 149 *I32Ptr = (int32_t) AV.IntVal.getZExtValue(); in ffiValueFor() 154 *I64Ptr = (int64_t) AV.IntVal.getZExtValue(); in ffiValueFor() 227 case 8: Result.IntVal = APInt(8 , *(int8_t *) ret.data()); break; in ffiInvoke() 228 case 16: Result.IntVal = APInt(16, *(int16_t*) ret.data()); break; in ffiInvoke() 229 case 32: Result.IntVal = APInt(32, *(int32_t*) ret.data()); break; in ffiInvoke() 230 case 64: Result.IntVal = APInt(64, *(int64_t*) ret.data()); break; in ffiInvoke() 304 GV.IntVal = 0; in lle_X_atexit() 333 GV.IntVal = APInt(32, strlen(FmtStr)); in lle_X_sprintf() [all …]
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 432 GVArgc.IntVal = APInt(32, argv.size()); in runFunctionAsMain() 471 return runFunction(Fn, GVArgs).IntVal.getZExtValue(); in runFunctionAsMain() 610 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue() 620 Result.AggregateVal[i].IntVal = in getConstantValue() 638 Result.AggregateVal[i].IntVal = in getConstantValue() 662 GV.IntVal = GV.IntVal.trunc(BitWidth); in getConstantValue() 668 GV.IntVal = GV.IntVal.zext(BitWidth); in getConstantValue() 674 GV.IntVal = GV.IntVal.sext(BitWidth); in getConstantValue() 692 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue() 694 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue() [all …]
|
D | ExecutionEngineBindings.cpp | 43 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 69 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth() 76 return GenVal->IntVal.getSExtValue(); in LLVMGenericValueToInt() 78 return GenVal->IntVal.getZExtValue(); in LLVMGenericValueToInt()
|
/external/clang/include/clang/AST/ |
D | CommentLexer.h | 79 unsigned IntVal; variable 102 return StringRef(TextPtr, IntVal); in getText() 108 IntVal = Text.size(); in setText() 113 return StringRef(TextPtr, IntVal); in getUnknownCommandName() 119 IntVal = Name.size(); in setUnknownCommandName() 124 return IntVal; in getCommandID() 129 IntVal = ID; in setCommandID() 134 return IntVal; in getVerbatimBlockID() 139 IntVal = ID; in setVerbatimBlockID() 144 return StringRef(TextPtr, IntVal); in getVerbatimBlockText() [all …]
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | OrcMCJITReplacement.cpp | 55 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 68 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 77 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction() 93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)()); in runFunction() 95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)()); in runFunction() 97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)()); in runFunction() 99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)()); in runFunction() 101 rv.IntVal = APInt(BitWidth, ((int64_t (*)())(intptr_t)FPtr)()); in runFunction() 107 rv.IntVal = APInt(32, ((int (*)())(intptr_t)FPtr)()); in runFunction()
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmLexer.h | 62 APInt IntVal; variable 66 AsmToken(TokenKind Kind, StringRef Str, APInt IntVal) in AsmToken() argument 67 : Kind(Kind), Str(Str), IntVal(IntVal) {} in AsmToken() 68 AsmToken(TokenKind Kind, StringRef Str, int64_t IntVal = 0) 69 : Kind(Kind), Str(Str), IntVal(64, IntVal, true) {} in Kind() 107 return IntVal.getZExtValue(); in getIntVal() 113 return IntVal; in getAPIntVal()
|
/external/llvm/include/llvm/ExecutionEngine/ |
D | GenericValue.h | 38 APInt IntVal; // also used for long doubles. member 45 GenericValue() : IntVal(1,0) {UIntPairVal.first = 0; UIntPairVal.second = 0;} in GenericValue() 46 explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } in GenericValue()
|
/external/llvm/include/llvm/ADT/ |
D | PointerIntPair.h | 68 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() argument 69 setPointerAndInt(PtrVal, IntVal); in PointerIntPair() 93 void setInt(IntType IntVal) { in setInt() argument 94 intptr_t IntWord = static_cast<intptr_t>(IntVal); in setInt() 110 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) { in setPointerAndInt() argument 115 intptr_t IntWord = static_cast<intptr_t>(IntVal); in setPointerAndInt()
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 506 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 519 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 529 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction() 544 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 546 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 548 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 550 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 552 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); in runFunction() 558 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)()); in runFunction()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 42 FAddendCoef() : IsFp(false), BufHasFpVal(false), IntVal(0) {} in FAddendCoef() 47 IsFp = false; IntVal = C; in set() 54 bool isZero() const { return isInt() ? !IntVal : getFpVal().isZero(); } in isZero() 64 bool isOne() const { return isInt() && IntVal == 1; } in isOne() 65 bool isTwo() const { return isInt() && IntVal == 2; } in isTwo() 66 bool isMinusOne() const { return isInt() && IntVal == -1; } in isMinusOne() 67 bool isMinusTwo() const { return isInt() && IntVal == -2; } in isMinusTwo() 107 short IntVal; member in __anon585ce2540111::FAddendCoef 228 if (IntVal > 0) in convertToFpType() 229 new(P) APFloat(Sem, IntVal); in convertToFpType() [all …]
|
/external/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 257 unsigned &RegNo, int64_t &IntVal); 1231 MatchRegisterName(const AsmToken &Tok, unsigned &RegNo, int64_t &IntVal) { in MatchRegisterName() argument 1237 IntVal = 8; in MatchRegisterName() 1241 IntVal = 9; in MatchRegisterName() 1245 IntVal = 256; in MatchRegisterName() 1248 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) { in MatchRegisterName() 1249 RegNo = isPPC64()? XRegs[IntVal] : RRegs[IntVal]; in MatchRegisterName() 1252 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) { in MatchRegisterName() 1253 RegNo = FRegs[IntVal]; in MatchRegisterName() 1256 !Name.substr(2).getAsInteger(10, IntVal) && IntVal < 64) { in MatchRegisterName() [all …]
|
/external/llvm/lib/CodeGen/MIRParser/ |
D | MILexer.h | 127 APSInt IntVal; member 136 MIToken &setIntegerValue(APSInt IntVal); 174 const APSInt &integerValue() const { return IntVal; } in integerValue()
|
D | MILexer.cpp | 75 MIToken &MIToken::setIntegerValue(APSInt IntVal) { in setIntegerValue() argument 76 this->IntVal = std::move(IntVal); in setIntegerValue()
|
/external/llvm/examples/Fibonacci/ |
D | fibonacci.cpp | 129 Args[0].IntVal = APInt(32, n); in main() 133 outs() << "Result: " << GV.IntVal << "\n"; in main()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 54 IntVal, enumerator 108 assert(CurCode == tgtok::IntVal && "This token isn't an integer"); in getCurIntVal()
|
D | TGLexer.cpp | 403 return tgtok::IntVal; in LexNumber() 429 return tgtok::IntVal; in LexNumber()
|
D | TGParser.cpp | 549 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece() 564 if (Lex.Lex() != tgtok::IntVal) { in ParseRangePiece() 570 case tgtok::IntVal: in ParseRangePiece() 680 if (Lex.Lex() != tgtok::IntVal) { // Eat '<' in ParseType() 1148 case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break; in ParseSimpleValue() 1787 case tgtok::IntVal: { // RangePiece. in ParseForeachDeclaration()
|
/external/llvm/lib/Target/AMDGPU/AsmParser/ |
D | AMDGPUAsmParser.cpp | 446 bool parseCnt(int64_t &IntVal); 1124 int64_t IntVal; in parseOperand() local 1125 if (getParser().parseAbsoluteExpression(IntVal)) in parseOperand() 1127 if (!isInt<32>(IntVal) && !isUInt<32>(IntVal)) { in parseOperand() 1133 IntVal *= -1; in parseOperand() 1134 Operands.push_back(AMDGPUOperand::CreateImm(IntVal, S)); in parseOperand() 1141 int64_t IntVal; in parseOperand() local 1142 if (getParser().parseAbsoluteExpression(IntVal)) in parseOperand() 1145 APFloat F((float)BitsToDouble(IntVal)); in parseOperand() 1487 bool AMDGPUAsmParser::parseCnt(int64_t &IntVal) { in parseCnt() argument [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SimpleConstraintManager.cpp | 221 const llvm::APSInt &IntVal = Value.castAs<nonloc::ConcreteInt>().getValue(); in assumeWithinInclusiveRange() local 222 bool IsInRange = IntVal >= From && IntVal <= To; in assumeWithinInclusiveRange()
|
/external/llvm/examples/ParallelJIT/ |
D | ParallelJIT.cpp | 234 Args[0].IntVal = APInt(32, p->value); in callFunc() 239 return (void*)(intptr_t)gv.IntVal.getZExtValue(); in callFunc()
|
/external/llvm/examples/HowToUseJIT/ |
D | HowToUseJIT.cpp | 128 outs() << "Result: " << gv.IntVal << "\n"; in main()
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITCAPITest.cpp | 232 LLVMValueRef IntVal = LLVMBuildLoad(Builder, GlobalVar, "intVal"); in buildModuleWithCodeAndData() local 233 LLVMBuildRet(Builder, IntVal); in buildModuleWithCodeAndData()
|
/external/clang/lib/CodeGen/ |
D | CGAtomic.cpp | 192 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal, 1208 RValue AtomicInfo::ConvertIntToValueOrAtomic(llvm::Value *IntVal, in ConvertIntToValueOrAtomic() argument 1213 assert(IntVal->getType()->isIntegerTy() && "Expected integer value"); in ConvertIntToValueOrAtomic() 1223 assert(IntVal->getType() == ValTy && "Different integer types."); in ConvertIntToValueOrAtomic() 1224 return RValue::get(CGF.EmitFromMemory(IntVal, ValueTy)); in ConvertIntToValueOrAtomic() 1226 return RValue::get(CGF.Builder.CreateIntToPtr(IntVal, ValTy)); in ConvertIntToValueOrAtomic() 1227 else if (llvm::CastInst::isBitCastable(IntVal->getType(), ValTy)) in ConvertIntToValueOrAtomic() 1228 return RValue::get(CGF.Builder.CreateBitCast(IntVal, ValTy)); in ConvertIntToValueOrAtomic() 1245 CGF.Builder.CreateStore(IntVal, CastTemp) in ConvertIntToValueOrAtomic()
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 3791 unsigned IntVal; in matchFPURegisterName() local 3792 if (NumString.getAsInteger(10, IntVal)) in matchFPURegisterName() 3794 if (IntVal > 31) // Maximum index for fpu register. in matchFPURegisterName() 3796 return IntVal; in matchFPURegisterName() 3805 unsigned IntVal; in matchFCCRegisterName() local 3806 if (NumString.getAsInteger(10, IntVal)) in matchFCCRegisterName() 3808 if (IntVal > 7) // There are only 8 fcc registers. in matchFCCRegisterName() 3810 return IntVal; in matchFCCRegisterName() 3819 unsigned IntVal; in matchACRegisterName() local 3820 if (NumString.getAsInteger(10, IntVal)) in matchACRegisterName() [all …]
|