Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp429 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray()
432 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp143 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
H A DTargetTransformInfo.cpp875 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) { in getOperandInfo()
H A DValueTracking.cpp6039 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL)))) in isBytewiseValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp845 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold()
1658 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall()
1659 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h638 Constant *getElementAsConstant(unsigned i) const;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp455 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
3147 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant() function in ConstantDataSequential
3194 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
H A DAsmWriter.cpp1651 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal()
1656 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
H A DCore.cpp1629 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp75 Constant *ElemConst = ConstVec->getElementAsConstant(i); in addConstantsToTrack()
H A DSPIRVEmitIntrinsics.cpp899 Args.push_back(COp->getElementAsConstant(i)); in preprocessCompositeConstants()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp937 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
969 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp362 return CDS->getElementAsConstant(Elem); in split()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1951 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3533 return translateCopy(C, *CV->getElementAsConstant(0), *EntryBuilder); in translate()
3536 Constant &Elt = *CV->getElementAsConstant(i); in translate()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp268 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1854 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()