Home
last modified time | relevance | path

Searched refs:ElementIdx (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DOperator.cpp50 unsigned ElementIdx = OpC->getZExtValue(); in accumulateConstantOffset() local
52 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset()
/external/llvm/lib/IR/
DOperator.cpp37 unsigned ElementIdx = OpC->getZExtValue(); in accumulateConstantOffset() local
39 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset()
/external/llvm-project/llvm/lib/IR/
DOperator.cpp108 unsigned ElementIdx = ConstOffset->getZExtValue(); in accumulateConstantOffset() local
112 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
/external/llvm-project/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp525 unsigned ElementIdx = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in SRAGlobal() local
526 if (NewGlobals.count(ElementIdx) == 1) in SRAGlobal()
528 assert(NewGlobals.count(ElementIdx) == 0); in SRAGlobal()
532 ElTy = STy->getElementType(ElementIdx); in SRAGlobal()
537 Constant *In = Init->getAggregateElement(ElementIdx); in SRAGlobal()
542 GV->getName() + "." + Twine(ElementIdx), GV->getThreadLocalMode(), in SRAGlobal()
546 NewGlobals.insert(std::make_pair(ElementIdx, NGV)); in SRAGlobal()
554 uint64_t FieldOffset = Layout.getElementOffset(ElementIdx); in SRAGlobal()
556 if (NewAlign > DL.getABITypeAlign(STy->getElementType(ElementIdx))) in SRAGlobal()
561 uint64_t FragmentOffsetInBits = Layout.getElementOffsetInBits(ElementIdx); in SRAGlobal()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp504 unsigned ElementIdx = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue(); in SRAGlobal() local
505 if (NewGlobals.count(ElementIdx) == 1) in SRAGlobal()
507 assert(NewGlobals.count(ElementIdx) == 0); in SRAGlobal()
511 ElTy = STy->getElementType(ElementIdx); in SRAGlobal()
516 Constant *In = Init->getAggregateElement(ElementIdx); in SRAGlobal()
521 GV->getName() + "." + Twine(ElementIdx), GV->getThreadLocalMode(), in SRAGlobal()
525 NewGlobals.insert(std::make_pair(ElementIdx, NGV)); in SRAGlobal()
533 uint64_t FieldOffset = Layout.getElementOffset(ElementIdx); in SRAGlobal()
536 Align(DL.getABITypeAlignment(STy->getElementType(ElementIdx)))) in SRAGlobal()
541 uint64_t FragmentOffsetInBits = Layout.getElementOffsetInBits(ElementIdx); in SRAGlobal()
[all …]
/external/llvm/lib/Analysis/
DInlineCost.cpp324 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() local
326 Offset += APInt(IntPtrWidth, SL->getElementOffset(ElementIdx)); in accumulateGEPOffset()
DValueTracking.cpp1614 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() local
1616 uint64_t ElementOffset = SL->getElementOffset(ElementIdx); in isGEPKnownNonNull()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DInlineCost.cpp691 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() local
693 Offset += APInt(IntPtrWidth, SL->getElementOffset(ElementIdx)); in accumulateGEPOffset()
DValueTracking.cpp1954 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() local
1956 uint64_t ElementOffset = SL->getElementOffset(ElementIdx); in isGEPKnownNonNull()
/external/llvm-project/llvm/lib/Analysis/
DInlineCost.cpp826 unsigned ElementIdx = OpC->getZExtValue(); in accumulateGEPOffset() local
828 Offset += APInt(IntPtrWidth, SL->getElementOffset(ElementIdx)); in accumulateGEPOffset()
DValueTracking.cpp2046 unsigned ElementIdx = OpC->getZExtValue(); in isGEPKnownNonNull() local
2048 uint64_t ElementOffset = SL->getElementOffset(ElementIdx); in isGEPKnownNonNull()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp697 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst() local
700 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp747 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst() local
750 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSROA.cpp745 unsigned ElementIdx = OpC->getZExtValue(); in visitGetElementPtrInst() local
748 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst()