Home
last modified time | relevance | path

Searched refs:ConstOffset (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp169 auto *ConstOffset = dyn_cast<ConstantInt>(V); in accumulateConstantOffset() local
170 if (ConstOffset && ConstOffset->getType()->isIntegerTy()) { in accumulateConstantOffset()
171 if (ConstOffset->isZero()) in accumulateConstantOffset()
179 unsigned ElementIdx = ConstOffset->getZExtValue(); in accumulateConstantOffset()
188 if (!AccumulateOffset(ConstOffset->getValue(), in accumulateConstantOffset()
231 auto *ConstOffset = dyn_cast<ConstantInt>(V); in collectOffset() local
232 if (ConstOffset && ConstOffset->getType()->isIntegerTy()) { in collectOffset()
233 if (ConstOffset->isZero()) in collectOffset()
244 unsigned ElementIdx = ConstOffset->getZExtValue(); in collectOffset()
251 CollectConstantOffset(ConstOffset->getValue(), in collectOffset()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp965 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads()
972 ConstOffset = APInt(BW, 0); in foldPatternedLoads()
976 Constant *Ca = ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL); in foldPatternedLoads()
981 for (; ConstOffset.getZExtValue() <= E; ConstOffset += Stride) in foldPatternedLoads()
982 if (Ca != ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL)) in foldPatternedLoads()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp5348 int64_t ConstOffset; in selectFlatOffsetImpl() local
5349 std::tie(PtrBase, ConstOffset) = in selectFlatOffsetImpl()
5352 if (ConstOffset == 0 || (FlatVariant == SIInstrFlags::FlatScratch && in selectFlatOffsetImpl()
5357 if (!TII.isLegalFLATOffset(ConstOffset, AddrSpace, FlatVariant)) in selectFlatOffsetImpl()
5360 return std::pair(PtrBase, ConstOffset); in selectFlatOffsetImpl()
5398 int64_t ConstOffset; in selectGlobalSAddr() local
5403 std::tie(PtrBase, ConstOffset) = getPtrBaseWithConstantOffset(Addr, *MRI); in selectGlobalSAddr()
5405 if (ConstOffset != 0) { in selectGlobalSAddr()
5406 if (TII.isLegalFLATOffset(ConstOffset, AMDGPUAS::GLOBAL_ADDRESS, in selectGlobalSAddr()
5409 ImmOffset = ConstOffset; in selectGlobalSAddr()
[all …]
H A DAMDGPUPromoteAlloca.cpp407 APInt ConstOffset(BW, 0); in GEPToVectorIndex() local
428 if (!CurGEP->collectOffset(DL, BW, VarOffsets, ConstOffset)) in GEPToVectorIndex()
443 APInt::udivrem(ConstOffset, VecElemSize, IndexQuot, Rem); in GEPToVectorIndex()
469 if (ConstOffset.isZero()) in GEPToVectorIndex()
H A DAMDGPURegisterBankInfo.cpp1907 unsigned ConstOffset) { in reinsertVectorIndexAdd() argument
1913 auto MaterializedOffset = B.buildConstant(S32, ConstOffset); in reinsertVectorIndexAdd()
2864 unsigned ConstOffset; in applyMappingImpl() local
2865 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl()
2873 ConstOffset > 0 && in applyMappingImpl()
2874 ConstOffset < SrcTy.getNumElements(); in applyMappingImpl()
2904 reinsertVectorIndexAdd(B, MI, 2, ConstOffset); in applyMappingImpl()
2967 reinsertVectorIndexAdd(B, *IdxLo, 1, ConstOffset); in applyMappingImpl()
2995 unsigned ConstOffset; in applyMappingImpl() local
2996 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl()
[all …]
H A DAMDGPUISelDAGToDAG.cpp2759 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) { in SelectDS_GWS() local
2765 ImmOffset = ConstOffset->getZExtValue(); in SelectDS_GWS()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp465 auto ConstOffset = buildConstant(OffsetTy, Offset); in buildLoadFromOffset() local
466 auto Ptr = buildPtrAdd(PtrTy, BasePtr, ConstOffset); in buildLoadFromOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVSymbolicOperands.td1031 defm ConstOffset : ImageOperandOperand<0x8, []>;
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1581 for (const auto &ConstOffset : AssumedSet) { in collectConstantsForGEP() local
1583 CopyPerOffset.addToAll(ConstOffset.getSExtValue() * in collectConstantsForGEP()