Home
last modified time | relevance | path

Searched refs:getElementOffset (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp100 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment()
183 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
247 CollectConstantOffset(APInt(BitWidth, SL->getElementOffset(ElementIdx)), in collectOffset()
H A DDataLayout.cpp909 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
961 Offset -= SL->getElementOffset(Index); in getGEPIndexForOffset()
H A DValue.cpp1041 Offset += DL.getStructLayout(STy)->getElementOffset(OpC->getZExtValue()); in getOffsetFromIndex()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp120 unsigned SplitBegin = SL->getElementOffset(I); in splitGlobal()
123 : SL->getElementOffset(I + 1); in splitGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLocal.cpp50 uint64_t Size = DL.getStructLayout(STy)->getElementOffset(OpValue); in emitGEPOffset()
H A DTypeMetadataUtils.cpp168 Offset - SL->getElementOffset(Op), M, in getPointerAtOffset()
H A DModuleSummaryAnalysis.cpp767 auto Offset = SL->getElementOffset(EI.index()); in findFuncPointers()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h657 TypeSize getElementOffset(unsigned Idx) const { in getElementOffset() function
663 return getElementOffset(Idx) * 8; in getElementOffsetInBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp137 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp746 Addr, IC.Builder.CreateTypeSize(IdxType, SL->getElementOffset(i)), in unpackLoadToAggregate()
750 commonAlignment(Align, SL->getElementOffset(i).getKnownMinValue()), in unpackLoadToAggregate()
1301 Addr, IC.Builder.CreateTypeSize(IdxType, SL->getElementOffset(i)), in unpackStoreToAggregate()
1305 commonAlignment(Align, SL->getElementOffset(i).getKnownMinValue()); in unpackStoreToAggregate()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h228 auto Offset = CharUnits::fromQuantity(Layout->getElementOffset(Index));
423 auto Offset = CharUnits::fromQuantity(Layout->getElementOffset(Index)); in CreatePreserveStructAccessIndex()
H A DCGDecl.cpp1059 unsigned CurOff = Layout->getElementOffset(i); in constStructWithPadding()
1254 CharUnits::fromQuantity(Layout->getElementOffset(i)); in emitStoresForConstant()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAnalysis.cpp99 SL ? SL->getElementOffset(EI - EB) : TypeSize::getZero(); in ComputeValueVTs()
152 uint64_t EltOffset = SL ? SL->getElementOffset(I) : 0; in computeValueLLTs()
H A DGlobalMerge.cpp579 MergedLayout->getElementOffset(StructIdxs[idx])); in doMerge()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp70 DL.getStructLayout(SampleStruct)->getElementOffset(2), Alignment); in lowerCoroPromise()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1710 ? DL.getStructLayout(ST)->getElementOffset(0) + in bufferAggregateConstant()
1712 : DL.getStructLayout(ST)->getElementOffset(I + 1); in bufferAggregateConstant()
1713 int Bytes = EndOffset - DL.getStructLayout(ST)->getElementOffset(I); in bufferAggregateConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp452 uint64_t SizeSoFar = Layout->getElementOffset(i); in fillConstantStruct()
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRTypes.cpp359 uint64_t RecordType::getElementOffset(const ::mlir::DataLayout &dataLayout, in getElementOffset() function in RecordType
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DX86.cpp2411 IROffset -= SL->getElementOffset(Elt); in getFPTypeAtOffset()
2522 IROffset -= SL->getElementOffset(FieldIdx); in GetINTEGERTypeAtOffset()
2590 assert(TD.getStructLayout(Result)->getElementOffset(1) == 8 && in GetX86_64ByValArgumentPair()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp885 DL->getStructLayout(StTy)->getElementOffset(Field); in accumulateByteOffset()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/
H A DCIRTypes.td614 uint64_t getElementOffset(const mlir::DataLayout &dataLayout,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3834 uint64_t PadSize = ((I == E - 1 ? Size : Layout->getElementOffset(I + 1)) - in emitGlobalConstantStruct()
3835 Layout->getElementOffset(I)) - in emitGlobalConstantStruct()
4063 uint64_t GapToNext = Layout->getElementOffset(i + 1) - SizeSoFar; in emitGlobalConstantImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp277 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1185 InitializeMemory(CPS->getOperand(i), (char*)Addr+SL->getElementOffset(i)); in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1270 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field); in getGEPCost()

12