/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Operator.cpp | 164 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) { in accumulateConstantOffset() local 165 if (ConstOffset->isZero()) in accumulateConstantOffset() 173 unsigned ElementIdx = ConstOffset->getZExtValue(); in accumulateConstantOffset() 182 if (!AccumulateOffset(ConstOffset->getValue(), in accumulateConstantOffset() 223 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) { in collectOffset() local 224 if (ConstOffset->isZero()) in collectOffset() 235 unsigned ElementIdx = ConstOffset->getZExtValue(); in collectOffset() 242 CollectConstantOffset(ConstOffset->getValue(), in collectOffset()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 902 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads() 909 ConstOffset = APInt(BW, 0); in foldPatternedLoads() 913 Constant *Ca = ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL); in foldPatternedLoads() 918 for (; ConstOffset.getZExtValue() <= E; ConstOffset += Stride) in foldPatternedLoads() 919 if (Ca != ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL)) in foldPatternedLoads()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstructionSelector.cpp | 4314 int64_t ConstOffset; in selectFlatOffsetImpl() local 4315 std::tie(PtrBase, ConstOffset) = in selectFlatOffsetImpl() 4318 if (ConstOffset == 0 || (FlatVariant == SIInstrFlags::FlatScratch && in selectFlatOffsetImpl() 4323 if (!TII.isLegalFLATOffset(ConstOffset, AddrSpace, FlatVariant)) in selectFlatOffsetImpl() 4326 return std::pair(PtrBase, ConstOffset); in selectFlatOffsetImpl() 4364 int64_t ConstOffset; in selectGlobalSAddr() local 4369 std::tie(PtrBase, ConstOffset) = getPtrBaseWithConstantOffset(Addr, *MRI); in selectGlobalSAddr() 4371 if (ConstOffset != 0) { in selectGlobalSAddr() 4372 if (TII.isLegalFLATOffset(ConstOffset, AMDGPUAS::GLOBAL_ADDRESS, in selectGlobalSAddr() 4375 ImmOffset = ConstOffset; in selectGlobalSAddr() [all …]
|
H A D | AMDGPUPromoteAlloca.cpp | 406 APInt ConstOffset(BW, 0); in GEPToVectorIndex() local 408 !GEP->collectOffset(DL, BW, VarOffsets, ConstOffset)) in GEPToVectorIndex() 419 if (!ConstOffset.isZero() || VarOffset.second != VecElemSize) in GEPToVectorIndex() 426 APInt::udivrem(ConstOffset, VecElemSize, Quot, Rem); in GEPToVectorIndex()
|
H A D | AMDGPURegisterBankInfo.cpp | 1879 unsigned ConstOffset) { in reinsertVectorIndexAdd() argument 1885 auto MaterializedOffset = B.buildConstant(S32, ConstOffset); in reinsertVectorIndexAdd() 2814 unsigned ConstOffset; in applyMappingImpl() local 2815 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl() 2823 ConstOffset > 0 && in applyMappingImpl() 2824 ConstOffset < SrcTy.getNumElements(); in applyMappingImpl() 2854 reinsertVectorIndexAdd(B, MI, 2, ConstOffset); in applyMappingImpl() 2917 reinsertVectorIndexAdd(B, *IdxLo, 1, ConstOffset); in applyMappingImpl() 2945 unsigned ConstOffset; in applyMappingImpl() local 2946 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl() [all …]
|
H A D | AMDGPUISelDAGToDAG.cpp | 2630 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) { in SelectDS_GWS() local 2636 ImmOffset = ConstOffset->getZExtValue(); in SelectDS_GWS()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 463 auto ConstOffset = buildConstant(OffsetTy, Offset); in buildLoadFromOffset() local 464 auto Ptr = buildPtrAdd(PtrTy, BasePtr, ConstOffset); in buildLoadFromOffset()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVSymbolicOperands.td | 978 defm ConstOffset : ImageOperandOperand<0x8, []>;
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | AttributorAttributes.cpp | 1580 for (const auto &ConstOffset : AssumedSet) { in collectConstantsForGEP() local 1582 CopyPerOffset.addToAll(ConstOffset.getSExtValue() * in collectConstantsForGEP()
|