/external/llvm-project/polly/lib/CodeGen/ |
D | IRBuilder.cpp | 158 llvm::Value *BasePtr) { in annotateSecondLevel() argument 170 auto AliasScope = AliasScopeMap.lookup(BasePtr); in annotateSecondLevel() 182 auto OtherAliasScopeList = OtherAliasScopeListMap.lookup(BasePtr); in annotateSecondLevel() 234 Value *BasePtr = findBasePtr(Ptr); in annotate() local 235 if (!BasePtr) in annotate() 238 auto AliasScope = AliasScopeMap.lookup(BasePtr); in annotate() 241 BasePtr = AlternativeAliasBases.lookup(BasePtr); in annotate() 242 if (!BasePtr) in annotate() 245 AliasScope = AliasScopeMap.lookup(BasePtr); in annotate() 250 assert(OtherAliasScopeListMap.count(BasePtr) && in annotate() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/ |
D | builder_gfx_mem.cpp | 294 LoadInst* BuilderGfxMem::LOAD(Value* BasePtr, in LOAD() argument 300 AssertGFXMemoryParams(BasePtr, usage); in LOAD() 303 if (BasePtr->getType() == mInt64Ty) in LOAD() 306 BasePtr = INT_TO_PTR(BasePtr, Ty, name); in LOAD() 314 BasePtr = Builder::GEPA(BasePtr, valIndices, name); in LOAD() 317 BasePtr = PTR_TO_INT(BasePtr, mInt64Ty, name); in LOAD() 320 return LOAD(BasePtr, name, Ty, usage); in LOAD() 349 Value* BasePtr, in STORE() argument 354 AssertGFXMemoryParams(BasePtr, usage); in STORE() 355 TrackerHelper(BasePtr, Ty, usage, false); in STORE() [all …]
|
D | builder_mem.h | 73 virtual LoadInst* LOAD(Value* BasePtr, 95 virtual StoreInst* STORE(Value* Val, Value* BasePtr, const std::initializer_list<uint32_t>& offset,… 102 LoadInst* LOADV(Value* BasePtr, const std::initializer_list<Value*>& offset, const llvm::Twine& na… 103 StoreInst* STOREV(Value* Val, Value* BasePtr, const std::initializer_list<Value*>& offset);
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 80 unsigned BasePtr; in eliminateFrameIndex() local 81 int64_t Offset = (TFI->getFrameIndexReference(MF, FrameIndex, BasePtr) + in eliminateFrameIndex() 86 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 101 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 124 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 132 .addReg(BasePtr).addImm(HighOffset).addReg(0); in eliminateFrameIndex() 138 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex()
|
/external/llvm/lib/Target/X86/ |
D | X86RegisterInfo.cpp | 72 BasePtr = Use64BitReg ? X86::RBX : X86::EBX; in X86RegisterInfo() 77 BasePtr = X86::ESI; in X86RegisterInfo() 462 unsigned BasePtr = getX86SubSuperRegister(getBaseRegister(), 64); in getReservedRegs() local 463 for (MCSubRegIterator I(BasePtr, this, /*IncludeSelf=*/true); in getReservedRegs() 563 return MRI->canReserveReg(BasePtr); in canRealignStack() 582 unsigned BasePtr; in eliminateFrameIndex() local 589 BasePtr = (FrameIndex < 0 ? FramePtr : getBaseRegister()); in eliminateFrameIndex() 591 BasePtr = (FrameIndex < 0 ? FramePtr : StackPtr); in eliminateFrameIndex() 593 BasePtr = StackPtr; in eliminateFrameIndex() 595 BasePtr = (TFI->hasFP(MF) ? FramePtr : StackPtr); in eliminateFrameIndex() [all …]
|
D | X86RegisterInfo.h | 50 unsigned BasePtr; variable 135 unsigned getBaseRegister() const { return BasePtr; } in getBaseRegister()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86RegisterInfo.cpp | 66 BasePtr = Use64BitReg ? X86::RBX : X86::EBX; in X86RegisterInfo() 71 BasePtr = X86::ESI; in X86RegisterInfo() 558 Register BasePtr = getX86SubSuperRegister(getBaseRegister(), 64); in getReservedRegs() local 559 for (const MCPhysReg &SubReg : subregs_inclusive(BasePtr)) in getReservedRegs() 665 return MRI->canReserveReg(BasePtr); in canRealignStack() 690 Register BasePtr = MI.getOperand(1).getReg(); in tryOptimizeLEAtoMOV() local 695 BasePtr = getX86SubSuperRegister(BasePtr, 32); in tryOptimizeLEAtoMOV() 699 TII->copyPhysReg(*MI.getParent(), II, MI.getDebugLoc(), NewDestReg, BasePtr, in tryOptimizeLEAtoMOV() 731 unsigned BasePtr; in eliminateFrameIndex() local 736 FIOffset = TFI->getFrameIndexReferenceSP(MF, FrameIndex, BasePtr, 0); in eliminateFrameIndex() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86RegisterInfo.cpp | 67 BasePtr = Use64BitReg ? X86::RBX : X86::EBX; in X86RegisterInfo() 72 BasePtr = X86::ESI; in X86RegisterInfo() 553 Register BasePtr = getX86SubSuperRegister(getBaseRegister(), 64); in getReservedRegs() local 554 for (const MCPhysReg &SubReg : subregs_inclusive(BasePtr)) in getReservedRegs() 664 return MRI->canReserveReg(BasePtr); in canRealignStack() 682 Register BasePtr = MI.getOperand(1).getReg(); in tryOptimizeLEAtoMOV() local 687 BasePtr = getX86SubSuperRegister(BasePtr, 32); in tryOptimizeLEAtoMOV() 691 TII->copyPhysReg(*MI.getParent(), II, MI.getDebugLoc(), NewDestReg, BasePtr, in tryOptimizeLEAtoMOV() 723 Register BasePtr; in eliminateFrameIndex() local 729 TFI->getFrameIndexReferenceSP(MF, FrameIndex, BasePtr, 0).getFixed(); in eliminateFrameIndex() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 123 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument 124 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds() 314 Value *BasePtr = GetPointerOperand(MemI); in runOnLoop() local 315 assert(BasePtr && "No pointer operand"); in runOnLoop() 319 BasePtr->getType()->getPointerAddressSpace()); in runOnLoop() 357 PtrInc->setIsInBounds(IsPtrInBounds(BasePtr)); in runOnLoop() 367 if (PtrInc->getType() != BasePtr->getType()) in runOnLoop() 368 NewBasePtr = new BitCastInst(PtrInc, BasePtr->getType(), in runOnLoop() 373 if (Instruction *IDel = dyn_cast<Instruction>(BasePtr)) in runOnLoop() 375 BasePtr->replaceAllUsesWith(NewBasePtr); in runOnLoop() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 240 Value *BasePtr = checkGEP(Offsets, Ty, Ptr, Builder); in tryCreateMaskedGatherOffset() local 241 if (!BasePtr) in tryCreateMaskedGatherOffset() 246 BasePtr->getType()->getPointerElementType()->getPrimitiveSizeInBits(); in tryCreateMaskedGatherOffset() 266 {Ty, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset() 267 {BasePtr, Offsets, Builder.getInt32(Ty->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 272 {Ty, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset() 273 {BasePtr, Offsets, Builder.getInt32(Ty->getScalarSizeInBits()), in tryCreateMaskedGatherOffset()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | MVEGatherScatterLowering.cpp | 126 Value *tryCreateIncrementingGatScat(IntrinsicInst *I, Value *BasePtr, 132 Value *tryCreateIncrementingWBGatScat(IntrinsicInst *I, Value *BasePtr, 479 Value *BasePtr = in tryCreateMaskedGatherOffset() local 481 if (!BasePtr) in tryCreateMaskedGatherOffset() 485 Value *Load = tryCreateIncrementingGatScat(I, BasePtr, Offsets, GEP, Builder); in tryCreateMaskedGatherOffset() 490 BasePtr->getType()->getPointerElementType()->getPrimitiveSizeInBits(), in tryCreateMaskedGatherOffset() 500 {ResultTy, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset() 501 {BasePtr, Offsets, Builder.getInt32(OriginalTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 506 {ResultTy, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset() 507 {BasePtr, Offsets, Builder.getInt32(OriginalTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCLoopInstrFormPrep.cpp | 256 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument 257 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds() 503 Value *BasePtr = GetPointerOperand(MemI); in rewriteLoadStores() local 504 assert(BasePtr && "No pointer operand"); in rewriteLoadStores() 508 BasePtr->getType()->getPointerAddressSpace()); in rewriteLoadStores() 567 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 574 if (PtrInc->getType() != BasePtr->getType()) in rewriteLoadStores() 576 PtrInc, BasePtr->getType(), in rewriteLoadStores() 595 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 600 if (NewPHI->getType() != BasePtr->getType()) in rewriteLoadStores() [all …]
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCLoopInstrFormPrep.cpp | 254 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument 255 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds() 508 Value *BasePtr = GetPointerOperand(MemI); in rewriteLoadStores() local 509 assert(BasePtr && "No pointer operand"); in rewriteLoadStores() 513 BasePtr->getType()->getPointerAddressSpace()); in rewriteLoadStores() 572 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 579 if (PtrInc->getType() != BasePtr->getType()) in rewriteLoadStores() 581 PtrInc, BasePtr->getType(), in rewriteLoadStores() 600 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteLoadStores() 605 if (NewPHI->getType() != BasePtr->getType()) in rewriteLoadStores() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 79 Type *Ty, Value *BasePtr, int Idx1, 82 Type *Ty, Value *BasePtr, int Idx1, int Idx2, 258 Value *BasePtr, int Idx, in CreateGEP() argument 264 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 272 IRBuilder<> &B, Type *Ty, Value *BasePtr, in CreateGEP() argument 276 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
|
D | InterleavedLoadCombinePass.cpp | 870 Value *BasePtr; in computeFromLI() local 880 computePolynomialFromPointer(*LI->getPointerOperand(), Offset, BasePtr, DL); in computeFromLI() 883 Result.PV = BasePtr; in computeFromLI() 957 Value *&BasePtr, in computePolynomialFromPointer() 963 BasePtr = nullptr; in computePolynomialFromPointer() 974 computePolynomialFromPointer(*CI.getOperand(0), Result, BasePtr, DL); in computePolynomialFromPointer() 977 BasePtr = &Ptr; in computePolynomialFromPointer() 991 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() 1009 BasePtr = nullptr; in computePolynomialFromPointer() 1026 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 79 Type *Ty, Value *BasePtr, int Idx1, 82 Type *Ty, Value *BasePtr, int Idx1, int Idx2, 258 Value *BasePtr, int Idx, in CreateGEP() argument 264 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 272 IRBuilder<> &B, Type *Ty, Value *BasePtr, in CreateGEP() argument 276 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
|
D | InterleavedLoadCombinePass.cpp | 870 Value *BasePtr; in computeFromLI() local 880 computePolynomialFromPointer(*LI->getPointerOperand(), Offset, BasePtr, DL); in computeFromLI() 883 Result.PV = BasePtr; in computeFromLI() 957 Value *&BasePtr, in computePolynomialFromPointer() 963 BasePtr = nullptr; in computePolynomialFromPointer() 974 computePolynomialFromPointer(*CI.getOperand(0), Result, BasePtr, DL); in computePolynomialFromPointer() 977 BasePtr = &Ptr; in computePolynomialFromPointer() 991 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() 1009 BasePtr = nullptr; in computePolynomialFromPointer() 1026 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() [all …]
|
/external/llvm-project/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 268 Register BasePtr; in eliminateFrameIndex() local 270 (TFI->getFrameIndexReference(MF, FrameIndex, BasePtr).getFixed() + in eliminateFrameIndex() 275 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 290 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 313 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 321 .addReg(BasePtr).addImm(HighOffset).addReg(0); in eliminateFrameIndex() 327 .addReg(BasePtr, RegState::Kill).addImm(0).addReg(ScratchReg); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/ |
D | SystemZRegisterInfo.cpp | 270 unsigned BasePtr; in eliminateFrameIndex() local 271 int64_t Offset = (TFI->getFrameIndexReference(MF, FrameIndex, BasePtr) + in eliminateFrameIndex() 276 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 291 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 314 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 322 .addReg(BasePtr).addImm(HighOffset).addReg(0); in eliminateFrameIndex() 328 .addReg(ScratchReg, RegState::Kill).addReg(BasePtr); in eliminateFrameIndex()
|
/external/llvm/lib/Target/MSP430/ |
D | MSP430RegisterInfo.cpp | 116 unsigned BasePtr = (TFI->hasFP(MF) ? MSP430::FP : MSP430::SP); in eliminateFrameIndex() local 137 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 154 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/ |
D | MSP430RegisterInfo.cpp | 115 unsigned BasePtr = (TFI->hasFP(MF) ? MSP430::FP : MSP430::SP); in eliminateFrameIndex() local 136 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 153 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex()
|
/external/llvm-project/llvm/lib/Target/MSP430/ |
D | MSP430RegisterInfo.cpp | 115 unsigned BasePtr = (TFI->hasFP(MF) ? MSP430::R4 : MSP430::SP); in eliminateFrameIndex() local 136 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 153 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex()
|
/external/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 60 Type *Ty, Value *BasePtr, int Idx1, 63 Type *Ty, Value *BasePtr, int Idx1, int Idx2, 355 Value *BasePtr, int Idx, in CreateGEP() argument 361 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP() 369 IRBuilder<> &B, Type *Ty, Value *BasePtr, in CreateGEP() argument 373 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in CreateGEP()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/ |
D | AVRISelDAGToDAG.cpp | 327 SDValue BasePtr = ST->getBasePtr(); in select() local 330 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) || in select() 331 BasePtr.isUndef()) { in select() 335 const RegisterSDNode *RN = dyn_cast<RegisterSDNode>(BasePtr.getOperand(0)); in select() 341 int CST = (int)cast<ConstantSDNode>(BasePtr.getOperand(1))->getZExtValue(); in select() 346 SDValue Ops[] = {BasePtr.getOperand(0), Offset, ST->getValue(), Chain}; in select()
|
/external/llvm-project/llvm/lib/Target/AVR/ |
D | AVRISelDAGToDAG.cpp | 324 SDValue BasePtr = ST->getBasePtr(); in select() local 327 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) || in select() 328 BasePtr.isUndef()) { in select() 332 const RegisterSDNode *RN = dyn_cast<RegisterSDNode>(BasePtr.getOperand(0)); in select() 338 int CST = (int)cast<ConstantSDNode>(BasePtr.getOperand(1))->getZExtValue(); in select() 343 SDValue Ops[] = {BasePtr.getOperand(0), Offset, ST->getValue(), Chain}; in select()
|