Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/IR/
H A DOperator.cpp71 Offset = SL->getElementOffset(OpC->getZExtValue()); in getMaxPreservedAlignment()
145 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
207 CollectConstantOffset(APInt(BitWidth, SL->getElementOffset(ElementIdx)), in collectOffset()
H A DDataLayout.cpp896 Result += Layout->getElementOffset(FieldNo); in getIndexedOffsetInType()
952 Offset -= SL->getElementOffset(Index); in getGEPIndexForOffset()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp85 unsigned SplitBegin = SL->getElementOffset(I); in splitGlobal()
88 : SL->getElementOffset(I + 1); in splitGlobal()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h57 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DDataLayout.h652 uint64_t getElementOffset(unsigned Idx) const { in getElementOffset() function
658 return getElementOffset(Idx) * 8; in getElementOffsetInBits()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTarget.cpp141 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
/llvm-project-15.0.7/openmp/libompd/src/
H A DTargetValue.h60 ompd_rc_t getElementOffset(const char *fieldName, ompd_size_t *offset);
H A DTargetValue.cpp122 ompd_rc_t TType::getElementOffset(const char *fieldName, ompd_size_t *offset) { in getElementOffset() function in TType
343 ret.errorState.errorCode = type->getElementOffset(fieldName, &offset); in access()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGBuilder.h197 auto Offset = CharUnits::fromQuantity(Layout->getElementOffset(Index));
362 auto Offset = CharUnits::fromQuantity(Layout->getElementOffset(Index)); in CreatePreserveStructAccessIndex()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroEarly.cpp69 DL.getStructLayout(SampleStruct)->getElementOffset(2), Alignment); in lowerCoroPromise()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DTypeMetadataUtils.cpp147 Offset - SL->getElementOffset(Op), M, in getPointerAtOffset()
H A DModuleSummaryAnalysis.cpp545 auto Offset = SL->getElementOffset(EI.index()); in findFuncPointers()
H A DConstantFolding.cpp468 uint64_t CurEltOffset = SL->getElementOffset(Index); in ReadDataFromGlobal()
488 uint64_t NextEltOffset = SL->getElementOffset(Index); in ReadDataFromGlobal()
H A DBasicAliasAnalysis.cpp611 Decomposed.Offset += DL.getStructLayout(STy)->getElementOffset(FieldNo); in DecomposeGEPExpression()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAnalysis.cpp95 uint64_t EltOffset = SL ? SL->getElementOffset(EI - EB) : 0; in ComputeValueVTs()
140 uint64_t EltOffset = SL ? SL->getElementOffset(I) : 0; in computeValueLLTs()
H A DGlobalMerge.cpp534 MergedLayout->getElementOffset(StructIdxs[idx])); in doMerge()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1923 Bytes = DL.getStructLayout(ST)->getElementOffset(0) + in bufferAggregateConstant()
1925 DL.getStructLayout(ST)->getElementOffset(i); in bufferAggregateConstant()
1927 Bytes = DL.getStructLayout(ST)->getElementOffset(i + 1) - in bufferAggregateConstant()
1928 DL.getStructLayout(ST)->getElementOffset(i); in bufferAggregateConstant()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp456 uint64_t SizeSoFar = Layout->getElementOffset(i); in fillConstantStruct()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp667 commonAlignment(Align, SL->getElementOffset(i)), Name + ".unpack"); in unpackLoadToAggregate()
1189 auto EltAlign = commonAlignment(Align, SL->getElementOffset(i)); in unpackStoreToAggregate()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp838 DL->getStructLayout(StTy)->getElementOffset(Field); in accumulateByteOffset()
H A DSROA.cpp741 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst()
3693 Offset -= SL->getElementOffset(Index); in getTypePartition()
3722 if (SL->getElementOffset(EndIndex) != EndOffset) in getTypePartition()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h953 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field); in getGEPCost()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp279 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1163 InitializeMemory(CPS->getOperand(i), (char*)Addr+SL->getElementOffset(i)); in InitializeMemory()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3050 uint64_t PadSize = ((I == E - 1 ? Size : Layout->getElementOffset(I + 1)) - in emitGlobalConstantStruct()
3051 Layout->getElementOffset(I)) - in emitGlobalConstantStruct()

12