/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVGatherScatterLowering.cpp | 74 PHINode *&BasePtr, BinaryOperator *&Inc, 197 PHINode *&BasePtr, in matchStridedRecurrence() argument 231 BasePtr = in matchStridedRecurrence() 233 Inc = BinaryOperator::CreateAdd(BasePtr, Step, Inc->getName() + ".scalar", in matchStridedRecurrence() 235 BasePtr->addIncoming(Start, Phi->getIncomingBlock(1 - IncrementingBlock)); in matchStridedRecurrence() 236 BasePtr->addIncoming(Inc, Phi->getIncomingBlock(IncrementingBlock)); in matchStridedRecurrence() 289 if (!matchStridedRecurrence(Index, L, Stride, BasePtr, Inc, Builder)) in matchStridedRecurrence() 293 unsigned StepIndex = Inc->getOperand(0) == BasePtr ? 1 : 0; in matchStridedRecurrence() 294 unsigned StartBlock = BasePtr->getOperand(0) == Inc ? 1 : 0; in matchStridedRecurrence() 296 Value *Start = BasePtr->getOperand(StartBlock); in matchStridedRecurrence() [all …]
|
H A D | RISCVCodeGenPrepare.cpp | 172 Value *BasePtr, *VL; in expandVPStrideLoad() local 176 m_Value(BasePtr), m_Zero(), m_AllOnes(), m_Value(VL)))) in expandVPStrideLoad() 191 Value *Val = Builder.CreateLoad(STy, BasePtr); in expandVPStrideLoad()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | EvaluationResult.cpp | 63 const Pointer &BasePtr, const Record *R); 66 const Pointer &BasePtr, in CheckArrayInitialized() argument 73 const Record *R = BasePtr.getElemRecord(); in CheckArrayInitialized() 75 Pointer ElemPtr = BasePtr.atIndex(I).narrow(); in CheckArrayInitialized() 80 Pointer ElemPtr = BasePtr.atIndex(I).narrow(); in CheckArrayInitialized() 85 if (!BasePtr.atIndex(I).isInitialized()) { in CheckArrayInitialized() 86 DiagnoseUninitializedSubobject(S, Loc, BasePtr.getField()); in CheckArrayInitialized() 96 const Pointer &BasePtr, const Record *R) { in CheckFieldsInitialized() argument 101 Pointer FieldPtr = BasePtr.atField(F.Offset); in CheckFieldsInitialized() 126 Pointer P = BasePtr.atField(B.Offset); in CheckFieldsInitialized() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/ |
H A D | M68kRegisterInfo.cpp | 52 BasePtr = M68k::A4; in M68kRegisterInfo() 183 unsigned BasePtr; in eliminateFrameIndex() local 185 BasePtr = (FIndex < 0 ? FramePtr : getBaseRegister()); in eliminateFrameIndex() 187 BasePtr = (FIndex < 0 ? FramePtr : StackPtr); in eliminateFrameIndex() 189 BasePtr = StackPtr; in eliminateFrameIndex() 191 BasePtr = (TFI->hasFP(MF) ? FramePtr : StackPtr); in eliminateFrameIndex() 193 Base.ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 207 if (BasePtr == StackPtr) in eliminateFrameIndex() 257 return MRI->canReserveReg(BasePtr); in canRealignStack()
|
H A D | M68kRegisterInfo.h | 42 unsigned BasePtr; variable 109 unsigned getBaseRegister() const { return BasePtr; } in getBaseRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULowerKernelAttributes.cpp | 328 Function *BasePtr = getBasePtrIntrinsic(M, IsV5OrAbove); in runOnModule() local 330 if (!BasePtr) // ImplicitArgPtr/DispatchPtr not used. in runOnModule() 334 for (auto *U : BasePtr->users()) { in runOnModule() 361 Function *BasePtr = getBasePtrIntrinsic(*F.getParent(), IsV5OrAbove); in run() local 363 if (!BasePtr) // ImplicitArgPtr/DispatchPtr not used. in run() 368 if (CI->getCalledFunction() == BasePtr) in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86RegisterInfo.cpp | 70 BasePtr = Use64BitReg ? X86::RBX : X86::EBX; in X86RegisterInfo() 75 BasePtr = X86::ESI; in X86RegisterInfo() 575 Register BasePtr = getX86SubSuperRegister(getBaseRegister(), 64); in getReservedRegs() local 576 for (const MCPhysReg &SubReg : subregs_inclusive(BasePtr)) in getReservedRegs() 793 return MRI->canReserveReg(BasePtr); in canRealignStack() 818 Register BasePtr = MI.getOperand(1).getReg(); in tryOptimizeLEAtoMOV() local 823 BasePtr = getX86SubSuperRegister(BasePtr, 32); in tryOptimizeLEAtoMOV() 827 TII->copyPhysReg(*MI.getParent(), II, MI.getDebugLoc(), NewDestReg, BasePtr, in tryOptimizeLEAtoMOV() 861 assert(BasePtr == FramePtr && "Expected the FP as base register"); in eliminateFrameIndex() 898 Register BasePtr; in eliminateFrameIndex() local [all …]
|
H A D | X86RegisterInfo.h | 46 /// BasePtr - X86 physical register used as a base ptr in complex stack 49 unsigned BasePtr; variable 166 Register getBaseRegister() const { return BasePtr; }
|
H A D | X86ArgumentStackSlotRebase.cpp | 125 Register BasePtr = TRI->getBaseRegister(); in runOnMachineFunction() local 137 if (TRI->isSuperOrSubRegisterEq(BasePtr, Reg)) in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 141 Instruction *tryCreateIncrementingWBGatScat(IntrinsicInst *I, Value *BasePtr, 247 Value *BasePtr = Builder.CreateIntToPtr(Zero, Builder.getPtrTy()); in decomposePtr() local 251 return BasePtr; in decomposePtr() 550 Value *BasePtr = decomposePtr( in tryCreateMaskedGatherOffset() local 552 if (!BasePtr) in tryCreateMaskedGatherOffset() 561 {ResultTy, BasePtr->getType(), Offsets->getType(), Mask->getType()}, in tryCreateMaskedGatherOffset() 562 {BasePtr, Offsets, Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 567 {ResultTy, BasePtr->getType(), Offsets->getType()}, in tryCreateMaskedGatherOffset() 568 {BasePtr, Offsets, Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedGatherOffset() 703 Value *BasePtr = decomposePtr( in tryCreateMaskedScatterOffset() local [all …]
|
H A D | ARMBaseRegisterInfo.h | 132 unsigned BasePtr = ARM::R6; 206 Register getBaseRegister() const { return BasePtr; } in getBaseRegister()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ShadowStackGCLowering.cpp | 81 Type *Ty, Value *BasePtr, int Idx1, 84 Type *Ty, Value *BasePtr, int Idx1, int Idx2, 305 Type *Ty, Value *BasePtr, int Idx, in runOnFunction() 310 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in runOnFunction() 320 Value *BasePtr, int Idx, in runOnFunction() 324 Value *Val = B.CreateGEP(Ty, BasePtr, Indices, Name); in runOnFunction() 263 CreateGEP(LLVMContext & Context,IRBuilder<> & B,Type * Ty,Value * BasePtr,int Idx,int Idx2,const char * Name) CreateGEP() argument 277 CreateGEP(LLVMContext & Context,IRBuilder<> & B,Type * Ty,Value * BasePtr,int Idx,const char * Name) CreateGEP() argument
|
H A D | InterleavedLoadCombinePass.cpp | 871 Value *BasePtr; in computeFromLI() local 884 computePolynomialFromPointer(*LI->getPointerOperand(), Offset, BasePtr, DL); in computeFromLI() 887 Result.PV = BasePtr; in computeFromLI() 961 Value *&BasePtr, in computePolynomialFromPointer() 967 BasePtr = nullptr; in computePolynomialFromPointer() 978 computePolynomialFromPointer(*CI.getOperand(0), Result, BasePtr, DL); in computePolynomialFromPointer() 981 BasePtr = &Ptr; in computePolynomialFromPointer() 995 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() 1013 BasePtr = nullptr; in computePolynomialFromPointer() 1030 BasePtr = GEP.getPointerOperand(); in computePolynomialFromPointer() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZRegisterInfo.cpp | 298 Register BasePtr; in eliminateFrameIndex() local 300 (TFI->getFrameIndexReference(MF, FrameIndex, BasePtr).getFixed() + in eliminateFrameIndex() 305 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, /*isDef*/ false); in eliminateFrameIndex() 312 Ops, TFI->getFrameIndexReference(MF, FrameIndex, BasePtr).getFixed()); in eliminateFrameIndex() 329 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 352 MI->getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex() 360 .addReg(BasePtr).addImm(HighOffset).addReg(0); in eliminateFrameIndex() 366 .addReg(BasePtr, RegState::Kill).addImm(0).addReg(ScratchReg); in eliminateFrameIndex()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A 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() 156 MI.getOperand(FIOperandNum).ChangeToRegister(BasePtr, false); in eliminateFrameIndex()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCLoopInstrFormPrep.cpp | 356 static bool IsPtrInBounds(Value *BasePtr) { in IsPtrInBounds() argument 357 Value *StrippedBasePtr = BasePtr; in IsPtrInBounds() 658 Value *BasePtr = getPointerOperandAndType(BaseMemI); in rewriteForBase() local 659 assert(BasePtr && "No pointer operand"); in rewriteForBase() 664 BasePtr->getType()->getPointerAddressSpace()); in rewriteForBase() 732 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteForBase() 739 if (PtrInc->getType() != BasePtr->getType()) in rewriteForBase() 741 new BitCastInst(PtrInc, BasePtr->getType(), in rewriteForBase() 759 cast<GetElementPtrInst>(PtrInc)->setIsInBounds(IsPtrInBounds(BasePtr)); in rewriteForBase() 764 if (NewPHI->getType() != BasePtr->getType()) in rewriteForBase() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/ |
H A D | AVRISelDAGToDAG.cpp | 335 SDValue BasePtr = ST->getBasePtr(); in select() local 338 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) || in select() 339 BasePtr.isUndef()) { in select() 343 const RegisterSDNode *RN = dyn_cast<RegisterSDNode>(BasePtr.getOperand(0)); in select() 349 int CST = (int)BasePtr.getConstantOperandVal(1); in select() 354 SDValue Ops[] = {BasePtr.getOperand(0), Offset, ST->getValue(), Chain}; in select()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LoadStoreOpt.h | 99 Register BasePtr; 122 BasePtr = Register();
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64StackTagging.cpp | 114 Value *BasePtr; member in __anon5c1a1a7e0111::InitializerBuilder 130 InitializerBuilder(uint64_t Size, const DataLayout *DL, Value *BasePtr, in InitializerBuilder() argument 133 : Size(Size), DL(DL), BasePtr(BasePtr), SetTagFn(SetTagFn), in InitializerBuilder() 266 Value *Ptr = BasePtr; in emitZeroes() 276 Value *Ptr = BasePtr; in emitUndef() 285 Value *Ptr = BasePtr; in emitPair()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VVPISelLowering.cpp | 129 SDValue BasePtr = getMemoryPtr(Op); in lowerVVP_LOAD_STORE() local 156 {Chain, BasePtr, StrideV, Mask, AVL}); in lowerVVP_LOAD_STORE() 179 {Chain, Data, BasePtr, StrideV, Mask, AVL}); in splitPackedLoadStore() 278 SDValue BasePtr = getMemoryPtr(Op); in lowerVVP_GATHER_SCATTER() 298 CDAG.getGatherScatterAddress(BasePtr, Scale, Index, Mask, AVL); in lowerVVP_GATHER_SCATTER() 272 SDValue BasePtr = getMemoryPtr(Op); lowerVVP_GATHER_SCATTER() local
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LoadStoreOpt.cpp | 195 Register BasePtr; in instMayAlias() member 230 if (MUC0.BasePtr.isValid() && MUC0.BasePtr == MUC1.BasePtr && in instMayAlias() 539 C.BasePtr = StoreBase; in addStoreToCandidate() 568 if (C.BasePtr != StoreBase) in addStoreToCandidate()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFrameLowering.cpp | 296 Register BasePtr = MRI.createVirtualRegister(PtrRC); in emitPrologue() 297 FI->setBasePointerVreg(BasePtr); in emitPrologue() 298 BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::COPY), BasePtr) in emitPrologue() 288 Register BasePtr = MRI.createVirtualRegister(PtrRC); emitPrologue() local
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 415 SDValue BasePtr = LD->getBasePtr(); in LowerLOAD() local 421 if (DAG.isBaseWithConstantOffset(BasePtr) && in LowerLOAD() 422 isWordAligned(BasePtr->getOperand(0), DAG)) { in LowerLOAD() 423 SDValue NewBasePtr = BasePtr->getOperand(0); in LowerLOAD() 424 Offset = cast<ConstantSDNode>(BasePtr->getOperand(1))->getSExtValue(); in LowerLOAD() 428 if (TLI.isGAPlusOffset(BasePtr.getNode(), GV, Offset) && in LowerLOAD() 431 BasePtr->getValueType(0)); in LowerLOAD() 438 SDValue Low = DAG.getExtLoad(ISD::ZEXTLOAD, DL, MVT::i32, Chain, BasePtr, in LowerLOAD() 441 SDValue HighAddr = DAG.getNode(ISD::ADD, DL, MVT::i32, BasePtr, in LowerLOAD() 462 Entry.Node = BasePtr; in LowerLOAD() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | Address.h | 163 Address(llvm::Value *BasePtr, llvm::Type *ElementType, CharUnits Alignment, 166 : Pointer(BasePtr, IsKnownNonNull), ElementType(ElementType), in Pointer() argument
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
H A D | SymbolRecordMapping.cpp | 518 case EncodedFramePtrReg::BasePtr: return RegisterId::EBX; in decodeFramePtrReg() 526 case EncodedFramePtrReg::BasePtr: return RegisterId::R13; in encodeFramePtrReg() 552 return EncodedFramePtrReg::BasePtr; in encodeFramePtrReg() 564 return EncodedFramePtrReg::BasePtr;
|