Home
last modified time | relevance | path

Searched refs:getElementAsConstant (Results 1 – 18 of 18) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp143 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
H A DTargetTransformInfo.cpp774 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) { in getOperandInfo()
H A DValueTracking.cpp4086 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL)))) in isBytewiseValue()
/openbsd-src/gnu/llvm/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp434 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray()
437 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp705 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold()
1600 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall()
1601 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall()
1602 Constant *celt2 = CDV2 ? CDV2->getElementAsConstant(i) : nullptr; in evaluateCall()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp182 Args.push_back(AggrC->getElementAsConstant(i)); in preprocessCompositeConstants()
H A DSPIRVPreLegalizer.cpp68 GR->add(ConstVec->getElementAsConstant(i), &MF, in addConstantsToTrack()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DConstants.h623 Constant *getElementAsConstant(unsigned i) const;
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DConstants.cpp441 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
3203 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant() function in ConstantDataSequential
3250 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
H A DAsmWriter.cpp1508 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal()
1513 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
H A DConstantFold.cpp2187 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I)); in ConstantFoldGetElementPtr()
H A DCore.cpp1467 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGDecl.cpp922 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
954 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp360 return CDS->getElementAsConstant(Elem); in split()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1908 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3078 return translateCopy(C, *CV->getElementAsConstant(0), *EntryBuilder); in translate()
3081 Constant &Elt = *CV->getElementAsConstant(i); in translate()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp267 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1644 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()