Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp422 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray()
425 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp143 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
H A DTargetTransformInfo.cpp845 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) { in getOperandInfo()
H A DValueTracking.cpp5419 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL)))) in isBytewiseValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp586 Constant *ConstElt = CDV->getElementAsConstant(i); in isKnownIntegral()
831 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold()
1616 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall()
1617 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp68 GR->add(ConstVec->getElementAsConstant(i), &MF, in addConstantsToTrack()
H A DSPIRVEmitIntrinsics.cpp221 Args.push_back(AggrC->getElementAsConstant(i)); in preprocessCompositeConstants()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h622 Constant *getElementAsConstant(unsigned i) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp441 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
3002 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant() function in ConstantDataSequential
3049 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
H A DConstantFold.cpp1627 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I)); in ConstantFoldGetElementPtr()
H A DAsmWriter.cpp1567 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal()
1572 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
H A DCore.cpp1536 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp935 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
967 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp361 return CDS->getElementAsConstant(Elem); in split()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1932 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3331 return translateCopy(C, *CV->getElementAsConstant(0), *EntryBuilder); in translate()
3334 Constant &Elt = *CV->getElementAsConstant(i); in translate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp267 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1815 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()