/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | ARMJITInfo.cpp | 271 intptr_t ResultPtr = resolveRelocDestAddr(MR); in relocate() local 278 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8; in relocate() 280 if (ResultPtr >= 0) in relocate() 285 ResultPtr = - ResultPtr; in relocate() 290 ResultPtr = ResultPtr >> 2; in relocate() 291 *((intptr_t*)RelocPos) |= ResultPtr; in relocate() 301 *((intptr_t*)RelocPos) |= (intptr_t)ResultPtr; in relocate() 310 ResultPtr = ResultPtr - (intptr_t)RelocPos - 8; in relocate() 311 ResultPtr = (ResultPtr & 0x03FFFFFC) >> 2; in relocate() 312 assert(ResultPtr >= -33554432 && ResultPtr <= 33554428); in relocate() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/Mips/ |
D | MipsJITInfo.cpp | 200 intptr_t ResultPtr = (intptr_t) MR->getResultPointer(); in relocate() local 204 ResultPtr = (((ResultPtr - (intptr_t) RelocPos) - 4) >> 2) & 0xffff; in relocate() 205 *((unsigned*) RelocPos) |= (unsigned) ResultPtr; in relocate() 209 ResultPtr = (ResultPtr & 0x0fffffff) >> 2; in relocate() 210 *((unsigned*) RelocPos) |= (unsigned) ResultPtr; in relocate() 214 ResultPtr = ResultPtr >> 16; in relocate() 216 ResultPtr += 1; in relocate() 218 *((unsigned*) RelocPos) |= (unsigned) ResultPtr; in relocate() 222 ResultPtr = ResultPtr & 0xffff; in relocate() 223 *((unsigned*) RelocPos) |= (unsigned) ResultPtr; in relocate()
|
/external/swiftshader/third_party/LLVM/lib/Target/PowerPC/ |
D | PPCJITInfo.cpp | 414 intptr_t ResultPtr = (intptr_t)MR->getResultPointer(); in relocate() local 419 ResultPtr = (ResultPtr-(intptr_t)RelocPos) >> 2; in relocate() 420 assert(ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && in relocate() 422 *RelocPos |= (ResultPtr & ((1 << 24)-1)) << 2; in relocate() 427 ResultPtr = (ResultPtr-(intptr_t)RelocPos) >> 2; in relocate() 428 assert(ResultPtr >= -(1 << 13) && ResultPtr < (1 << 13) && in relocate() 430 *RelocPos |= (ResultPtr & ((1 << 14)-1)) << 2; in relocate() 434 ResultPtr += MR->getConstantVal(); in relocate() 440 if (((int)ResultPtr << 16) < 0) in relocate() 441 ResultPtr += 1 << 16; in relocate() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | ConvertUTFWrapper.cpp | 21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide() argument 31 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide() 32 ResultPtr += Source.size(); in ConvertUTF8toWide() 38 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide() 44 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 51 UTF32 *targetStart = reinterpret_cast<UTF32*>(ResultPtr); in ConvertUTF8toWide() 57 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 66 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr) { in ConvertCodePointToUTF8() argument 69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8() 77 ResultPtr = reinterpret_cast<char*>(TargetStart); in ConvertCodePointToUTF8() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | ConvertUTFWrapper.cpp | 21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide() argument 31 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide() 32 ResultPtr += Source.size(); in ConvertUTF8toWide() 38 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide() 44 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 51 UTF32 *targetStart = reinterpret_cast<UTF32*>(ResultPtr); in ConvertUTF8toWide() 57 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 66 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr) { in ConvertCodePointToUTF8() argument 69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8() 77 ResultPtr = reinterpret_cast<char*>(TargetStart); in ConvertCodePointToUTF8() [all …]
|
/external/llvm/lib/Support/ |
D | ConvertUTFWrapper.cpp | 21 char *&ResultPtr, const UTF8 *&ErrorPtr) { in ConvertUTF8toWide() argument 31 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide() 32 ResultPtr += Source.size(); in ConvertUTF8toWide() 38 UTF16 *targetStart = reinterpret_cast<UTF16*>(ResultPtr); in ConvertUTF8toWide() 44 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 51 UTF32 *targetStart = reinterpret_cast<UTF32*>(ResultPtr); in ConvertUTF8toWide() 57 ResultPtr = reinterpret_cast<char*>(targetStart); in ConvertUTF8toWide() 66 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr) { in ConvertCodePointToUTF8() argument 69 UTF8 *TargetStart = reinterpret_cast<UTF8 *>(ResultPtr); in ConvertCodePointToUTF8() 77 ResultPtr = reinterpret_cast<char*>(TargetStart); in ConvertCodePointToUTF8() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 775 Value *ResultPtr = Variadic->getOperand(0); in lowerToSingleIndexGEPs() local 779 L && L->isLoopInvariant(ResultPtr) && in lowerToSingleIndexGEPs() 780 !hasMoreThanOneUseInLoop(ResultPtr, L); in lowerToSingleIndexGEPs() 783 if (ResultPtr->getType() != I8PtrTy) in lowerToSingleIndexGEPs() 784 ResultPtr = Builder.CreateBitCast(ResultPtr, I8PtrTy); in lowerToSingleIndexGEPs() 809 ResultPtr = in lowerToSingleIndexGEPs() 810 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Idx, "uglygep"); in lowerToSingleIndexGEPs() 812 FirstResult = ResultPtr; in lowerToSingleIndexGEPs() 819 ResultPtr = in lowerToSingleIndexGEPs() 820 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Offset, "uglygep"); in lowerToSingleIndexGEPs() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SeparateConstOffsetFromGEP.cpp | 821 Value *ResultPtr = Variadic->getOperand(0); in lowerToSingleIndexGEPs() local 825 L && L->isLoopInvariant(ResultPtr) && in lowerToSingleIndexGEPs() 826 !hasMoreThanOneUseInLoop(ResultPtr, L); in lowerToSingleIndexGEPs() 829 if (ResultPtr->getType() != I8PtrTy) in lowerToSingleIndexGEPs() 830 ResultPtr = Builder.CreateBitCast(ResultPtr, I8PtrTy); in lowerToSingleIndexGEPs() 855 ResultPtr = in lowerToSingleIndexGEPs() 856 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Idx, "uglygep"); in lowerToSingleIndexGEPs() 858 FirstResult = ResultPtr; in lowerToSingleIndexGEPs() 865 ResultPtr = in lowerToSingleIndexGEPs() 866 Builder.CreateGEP(Builder.getInt8Ty(), ResultPtr, Offset, "uglygep"); in lowerToSingleIndexGEPs() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Target/X86/ |
D | X86JITInfo.cpp | 531 intptr_t ResultPtr = (intptr_t)MR->getResultPointer(); in relocate() local 536 ResultPtr = ResultPtr -(intptr_t)RelocPos - 4 - MR->getConstantVal(); in relocate() 537 *((unsigned*)RelocPos) += (unsigned)ResultPtr; in relocate() 543 ResultPtr = ResultPtr - ((intptr_t)Function + MR->getConstantVal()); in relocate() 544 *((unsigned*)RelocPos) += (unsigned)ResultPtr; in relocate() 551 *((unsigned*)RelocPos) += (unsigned)ResultPtr; in relocate() 554 *((intptr_t*)RelocPos) += ResultPtr; in relocate()
|
/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 220 char *ResultPtr = ResultBuf; in appendCodePoint() local 221 bool Res = llvm::ConvertCodePointToUTF8(Codepoint, ResultPtr); in appendCodePoint() 224 Str.append(ResultBuf, ResultPtr); in appendCodePoint() 392 UTF32 *ResultPtr = reinterpret_cast<UTF32*>(ResultBuf); in EncodeUCNEscape() local 393 *ResultPtr = UcnVal; in EncodeUCNEscape() 401 UTF16 *ResultPtr = reinterpret_cast<UTF16*>(ResultBuf); in EncodeUCNEscape() local 404 *ResultPtr = UcnVal; in EncodeUCNEscape() 411 *ResultPtr = 0xD800 + (UcnVal >> 10); in EncodeUCNEscape() 412 *(ResultPtr+1) = 0xDC00 + (UcnVal & 0x3FF); in EncodeUCNEscape() 1271 ResultPtr(ResultBuf.data()), hadError(false), Pascal(false) { in StringLiteralParser() [all …]
|
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/ |
D | JITEmitter.cpp | 725 void *ResultPtr = TheJIT->getPointerToGlobalIfAvailable(F); in getPointerToGlobal() local 726 if (ResultPtr) return ResultPtr; in getPointerToGlobal() 843 void *ResultPtr = 0; in finishFunction() local 846 ResultPtr = TheJIT->getPointerToNamedFunction(MR.getExternalSymbol(), in finishFunction() 849 << ResultPtr << "]\n"); in finishFunction() 853 ResultPtr = Resolver.getExternalFunctionStub(ResultPtr); in finishFunction() 856 ResultPtr = getPointerToGlobal(MR.getGlobalValue(), in finishFunction() 860 ResultPtr = getPointerToGVIndirectSym( in finishFunction() 863 ResultPtr = (void*)getMachineBasicBlockAddress(MR.getBasicBlock()); in finishFunction() 865 ResultPtr = in finishFunction() [all …]
|
/external/mesa3d/src/mesa/tnl/ |
D | t_pipeline.c | 98 if (tnl->vb.ResultPtr[i]->size != tnl->last_result_size[i] || in check_output_changes() 99 tnl->vb.ResultPtr[i]->stride != tnl->last_result_stride[i]) { in check_output_changes() 100 tnl->last_result_size[i] = tnl->vb.ResultPtr[i]->size; in check_output_changes() 101 tnl->last_result_stride[i] = tnl->vb.ResultPtr[i]->stride; in check_output_changes()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 48 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative() local 50 CI->replaceAllUsesWith(ResultPtr); in lowerLoadRelative()
|
D | CodeGenPrepare.cpp | 4482 Value *ResultPtr = nullptr, *ResultIndex = nullptr; in optimizeMemoryInst() local 4486 ResultPtr = AddrMode.BaseReg; in optimizeMemoryInst() 4493 if (ResultPtr || AddrMode.Scale != 1) in optimizeMemoryInst() 4496 ResultPtr = AddrMode.ScaledReg; in optimizeMemoryInst() 4515 if (ResultPtr) in optimizeMemoryInst() 4518 ResultPtr = AddrMode.BaseGV; in optimizeMemoryInst() 4525 if (!ResultPtr && AddrMode.BaseReg) { in optimizeMemoryInst() 4526 ResultPtr = Builder.CreateIntToPtr(AddrMode.BaseReg, Addr->getType(), in optimizeMemoryInst() 4529 } else if (!ResultPtr && AddrMode.Scale == 1) { in optimizeMemoryInst() 4530 ResultPtr = Builder.CreateIntToPtr(AddrMode.ScaledReg, Addr->getType(), in optimizeMemoryInst() [all …]
|
/external/llvm/lib/CodeGen/ |
D | PreISelIntrinsicLowering.cpp | 48 Value *ResultPtr = B.CreateGEP(Int8Ty, CI->getArgOperand(0), OffsetI32); in lowerLoadRelative() local 50 CI->replaceAllUsesWith(ResultPtr); in lowerLoadRelative()
|
D | CodeGenPrepare.cpp | 3834 Value *ResultPtr = nullptr, *ResultIndex = nullptr; in optimizeMemoryInst() local 3838 ResultPtr = AddrMode.BaseReg; in optimizeMemoryInst() 3845 if (ResultPtr || AddrMode.Scale != 1) in optimizeMemoryInst() 3848 ResultPtr = AddrMode.ScaledReg; in optimizeMemoryInst() 3853 if (ResultPtr) in optimizeMemoryInst() 3856 ResultPtr = AddrMode.BaseGV; in optimizeMemoryInst() 3862 if (!ResultPtr && AddrMode.BaseReg) { in optimizeMemoryInst() 3863 ResultPtr = in optimizeMemoryInst() 3866 } else if (!ResultPtr && AddrMode.Scale == 1) { in optimizeMemoryInst() 3867 ResultPtr = in optimizeMemoryInst() [all …]
|
/external/clang/include/clang/Lex/ |
D | LiteralSupport.h | 205 char *ResultPtr; // cursor variable 218 ResultPtr(ResultBuf.data()), hadError(false), Pascal(false) { in SM() 229 unsigned GetStringLength() const { return ResultPtr-ResultBuf.data(); } in GetStringLength()
|
/external/llvm/include/llvm/Support/ |
D | ConvertUTF.h | 201 char *&ResultPtr, const UTF8 *&ErrorPtr); 232 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr);
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | ConvertUTF.h | 197 char *&ResultPtr, const UTF8 *&ErrorPtr); 228 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr);
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | ConvertUTF.h | 198 char *&ResultPtr, const UTF8 *&ErrorPtr); 229 bool ConvertCodePointToUTF8(unsigned Source, char *&ResultPtr);
|
/external/clang/lib/CodeGen/ |
D | ItaniumCXXABI.cpp | 1666 llvm::Value *ResultPtr; in performTypeAdjustment() local 1684 ResultPtr = CGF.Builder.CreateInBoundsGEP(V.getPointer(), Offset); in performTypeAdjustment() 1686 ResultPtr = V.getPointer(); in performTypeAdjustment() 1692 ResultPtr = CGF.Builder.CreateConstInBoundsGEP1_64(ResultPtr, in performTypeAdjustment() 1697 return CGF.Builder.CreateBitCast(ResultPtr, InitialPtr.getType()); in performTypeAdjustment()
|
D | CGBuiltin.cpp | 1790 Address ResultPtr = EmitPointerWithAlignment(ResultArg); in EmitBuiltinExpr() local 1819 Builder.CreateStore(EmitToMemory(Result, ResultQTy), ResultPtr, isVolatile); in EmitBuiltinExpr()
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 3048 char *ResultPtr = &Target[0]; in ConvertUTF8ToWideString() local 3050 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString() 3053 Target.resize(ResultPtr - &Target[0]); in ConvertUTF8ToWideString()
|