/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 | 140 *I8Ptr = (int8_t) AV.IntVal.getZExtValue(); in ffiValueFor() 145 *I16Ptr = (int16_t) AV.IntVal.getZExtValue(); in ffiValueFor() 150 *I32Ptr = (int32_t) AV.IntVal.getZExtValue(); in ffiValueFor() 155 *I64Ptr = (int64_t) AV.IntVal.getZExtValue(); in ffiValueFor() 229 case 8: Result.IntVal = APInt(8 , *(int8_t *) ret.data()); break; in ffiInvoke() 230 case 16: Result.IntVal = APInt(16, *(int16_t*) ret.data()); break; in ffiInvoke() 231 case 32: Result.IntVal = APInt(32, *(int32_t*) ret.data()); break; in ffiInvoke() 232 case 64: Result.IntVal = APInt(64, *(int64_t*) ret.data()); break; in ffiInvoke() 307 GV.IntVal = 0; in lle_X_atexit() 341 GV.IntVal = APInt(32, strlen(FmtStr)); in lle_X_sprintf() [all …]
|
/external/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 409 GVArgc.IntVal = APInt(32, argv.size()); in runFunctionAsMain() 448 return runFunction(Fn, GVArgs).IntVal.getZExtValue(); in runFunctionAsMain() 587 Result.IntVal = APInt(C->getType()->getPrimitiveSizeInBits(), 0); in getConstantValue() 597 Result.AggregateVal[i].IntVal = in getConstantValue() 615 Result.AggregateVal[i].IntVal = in getConstantValue() 639 GV.IntVal = GV.IntVal.trunc(BitWidth); in getConstantValue() 645 GV.IntVal = GV.IntVal.zext(BitWidth); in getConstantValue() 651 GV.IntVal = GV.IntVal.sext(BitWidth); in getConstantValue() 669 GV.FloatVal = float(GV.IntVal.roundToDouble()); in getConstantValue() 671 GV.DoubleVal = GV.IntVal.roundToDouble(); in getConstantValue() [all …]
|
D | ExecutionEngineBindings.cpp | 42 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned); in LLVMCreateGenericValueOfInt() 68 return unwrap(GenValRef)->IntVal.getBitWidth(); in LLVMGenericValueIntWidth() 75 return GenVal->IntVal.getSExtValue(); in LLVMGenericValueToInt() 77 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 | 67 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() argument 68 setPointerAndInt(PtrVal, IntVal); in PointerIntPair() 92 void setInt(IntType IntVal) { in setInt() argument 93 intptr_t IntWord = static_cast<intptr_t>(IntVal); in setInt() 109 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) { in setPointerAndInt() argument 114 intptr_t IntWord = static_cast<intptr_t>(IntVal); in setPointerAndInt()
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
D | MCJIT.cpp | 472 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 485 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue(), in runFunction() 495 rv.IntVal = APInt(32, PF(ArgValues[0].IntVal.getZExtValue())); in runFunction() 510 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); in runFunction() 512 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); in runFunction() 514 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); in runFunction() 516 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); in runFunction() 518 rv.IntVal = APInt(BitWidth, ((int64_t(*)())(intptr_t)FPtr)()); in runFunction() 524 rv.IntVal = APInt(32, ((int(*)())(intptr_t)FPtr)()); in runFunction()
|
/external/llvm/lib/Target/PowerPC/AsmParser/ |
D | PPCAsmParser.cpp | 238 unsigned &RegNo, int64_t &IntVal); 1164 MatchRegisterName(const AsmToken &Tok, unsigned &RegNo, int64_t &IntVal) { in MatchRegisterName() argument 1170 IntVal = 8; in MatchRegisterName() 1174 IntVal = 9; in MatchRegisterName() 1178 IntVal = 256; in MatchRegisterName() 1181 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) { in MatchRegisterName() 1182 RegNo = isPPC64()? XRegs[IntVal] : RRegs[IntVal]; in MatchRegisterName() 1185 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) { in MatchRegisterName() 1186 RegNo = FRegs[IntVal]; in MatchRegisterName() 1189 !Name.substr(1).getAsInteger(10, IntVal) && IntVal < 32) { in MatchRegisterName() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 41 FAddendCoef() : IsFp(false), BufHasFpVal(false), IntVal(0) {} in FAddendCoef() 46 IsFp = false; IntVal = C; in set() 53 bool isZero() const { return isInt() ? !IntVal : getFpVal().isZero(); } in isZero() 63 bool isOne() const { return isInt() && IntVal == 1; } in isOne() 64 bool isTwo() const { return isInt() && IntVal == 2; } in isTwo() 65 bool isMinusOne() const { return isInt() && IntVal == -1; } in isMinusOne() 66 bool isMinusTwo() const { return isInt() && IntVal == -2; } in isMinusTwo() 106 short IntVal; member in __anon34d4ec880111::FAddendCoef 227 if (IntVal > 0) in convertToFpType() 228 new(P) APFloat(Sem, IntVal); in convertToFpType() [all …]
|
/external/llvm/lib/Target/R600/AsmParser/ |
D | AMDGPUAsmParser.cpp | 358 bool parseCnt(int64_t &IntVal); 588 int64_t IntVal; in parseOperand() local 589 if (getParser().parseAbsoluteExpression(IntVal)) in parseOperand() 591 APInt IntVal32(32, IntVal); in parseOperand() 592 if (IntVal32.getSExtValue() != IntVal) { in parseOperand() 597 IntVal = IntVal32.getSExtValue(); in parseOperand() 599 IntVal *= -1; in parseOperand() 600 Operands.push_back(AMDGPUOperand::CreateImm(IntVal, S)); in parseOperand() 607 int64_t IntVal; in parseOperand() local 608 if (getParser().parseAbsoluteExpression(IntVal)) in parseOperand() [all …]
|
/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 | 564 if (Lex.getCode() != tgtok::IntVal) { in ParseRangePiece() 579 if (Lex.Lex() != tgtok::IntVal) { in ParseRangePiece() 585 case tgtok::IntVal: in ParseRangePiece() 696 if (Lex.Lex() != tgtok::IntVal) { // Eat '<' in ParseType() 1174 case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break; in ParseSimpleValue() 1822 case tgtok::IntVal: { // RangePiece. in ParseForeachDeclaration()
|
/external/llvm/examples/Fibonacci/ |
D | fibonacci.cpp | 130 Args[0].IntVal = APInt(32, n); in main() 134 outs() << "Result: " << GV.IntVal << "\n"; in main()
|
/external/llvm/examples/ParallelJIT/ |
D | ParallelJIT.cpp | 233 Args[0].IntVal = APInt(32, p->value); in callFunc() 238 return (void*)(intptr_t)gv.IntVal.getZExtValue(); in callFunc()
|
/external/llvm/examples/HowToUseJIT/ |
D | HowToUseJIT.cpp | 129 outs() << "Result: " << gv.IntVal << "\n"; in main()
|
/external/clang/lib/CodeGen/ |
D | CGAtomic.cpp | 180 RValue ConvertIntToValueOrAtomic(llvm::Value *IntVal, 1086 RValue AtomicInfo::ConvertIntToValueOrAtomic(llvm::Value *IntVal, in ConvertIntToValueOrAtomic() argument 1091 assert(IntVal->getType()->isIntegerTy() && "Expected integer value"); in ConvertIntToValueOrAtomic() 1101 assert(IntVal->getType() == ValTy && "Different integer types."); in ConvertIntToValueOrAtomic() 1102 return RValue::get(CGF.EmitFromMemory(IntVal, ValueTy)); in ConvertIntToValueOrAtomic() 1104 return RValue::get(CGF.Builder.CreateIntToPtr(IntVal, ValTy)); in ConvertIntToValueOrAtomic() 1105 else if (llvm::CastInst::isBitCastable(IntVal->getType(), ValTy)) in ConvertIntToValueOrAtomic() 1106 return RValue::get(CGF.Builder.CreateBitCast(IntVal, ValTy)); in ConvertIntToValueOrAtomic() 1126 CGF.Builder.CreateAlignedStore(IntVal, CastTemp, TempAlignment.getQuantity()) in ConvertIntToValueOrAtomic()
|
/external/llvm/unittests/ExecutionEngine/MCJIT/ |
D | MCJITCAPITest.cpp | 230 LLVMValueRef IntVal = LLVMBuildLoad(Builder, GlobalVar, "intVal"); in buildModuleWithCodeAndData() local 231 LLVMBuildRet(Builder, IntVal); in buildModuleWithCodeAndData()
|
/external/llvm/lib/Target/Mips/AsmParser/ |
D | MipsAsmParser.cpp | 2321 unsigned IntVal; in matchFPURegisterName() local 2322 if (NumString.getAsInteger(10, IntVal)) in matchFPURegisterName() 2324 if (IntVal > 31) // Maximum index for fpu register. in matchFPURegisterName() 2326 return IntVal; in matchFPURegisterName() 2335 unsigned IntVal; in matchFCCRegisterName() local 2336 if (NumString.getAsInteger(10, IntVal)) in matchFCCRegisterName() 2338 if (IntVal > 7) // There are only 8 fcc registers. in matchFCCRegisterName() 2340 return IntVal; in matchFCCRegisterName() 2349 unsigned IntVal; in matchACRegisterName() local 2350 if (NumString.getAsInteger(10, IntVal)) in matchACRegisterName() [all …]
|
/external/llvm/lib/Target/AArch64/AsmParser/ |
D | AArch64AsmParser.cpp | 2098 uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue(); in tryParseFPImm() local 2099 int Val = AArch64_AM::getFP64Imm(APInt(64, IntVal)); in tryParseFPImm() 2121 uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue(); in tryParseFPImm() local 2123 IntVal ^= (uint64_t)isNegative << 63; in tryParseFPImm() 2124 Val = AArch64_AM::getFP64Imm(APInt(64, IntVal)); in tryParseFPImm() 3076 uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue(); in parseOperand() local 3081 else if (IntVal != 0 || isNegative) in parseOperand()
|
/external/llvm/tools/lli/ |
D | lli.cpp | 642 ResultGV.IntVal = APInt(32, Result); in main()
|
/external/llvm/lib/Target/X86/AsmParser/ |
D | X86AsmParser.cpp | 1187 int64_t IntVal = getTok().getIntVal(); in ParseIntelExpression() local 1194 getContext().GetDirectionalLocalSymbol(IntVal, IDVal == "b"); in ParseIntelExpression() 1204 if (SM.onInteger(IntVal, ErrMsg)) in ParseIntelExpression() 1208 if (SM.onInteger(IntVal, ErrMsg)) in ParseIntelExpression()
|