Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp425 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray()
428 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp842 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold()
1661 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall()
1662 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILDataScalarization.cpp364 ArrayElements.push_back(ConstDataVecInit->getElementAsConstant(I)); in transformInitializer()
H A DDXILFlattenArrays.cpp395 collectElements(DataArrayConstant->getElementAsConstant(I), Elements); in collectElements()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h540 Constant *getElementAsConstant(unsigned ElmIdx) const { in getElementAsConstant() function
542 cast<llvm::ConstantDataSequential>(Val)->getElementAsConstant(ElmIdx)); in getElementAsConstant()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp472 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
3178 Constant *ConstantDataSequential::getElementAsConstant(uint64_t Elt) const { in getElementAsConstant() function in ConstantDataSequential
3225 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
H A DAsmWriter.cpp1715 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal()
1720 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
H A DCore.cpp1632 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h647 LLVM_ABI Constant *getElementAsConstant(uint64_t i) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp79 Constant *ElemConst = ConstVec->getElementAsConstant(i); in addConstantsToTrack()
H A DSPIRVEmitIntrinsics.cpp1256 Args.push_back(COp->getElementAsConstant(i)); in preprocessCompositeConstants()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp929 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
961 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp369 return CDS->getElementAsConstant(Elem); in split()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1701 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(I)), 0, aggBuffer); in bufferAggregateConstant()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp933 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) { in getOperandInfo()
H A DValueTracking.cpp6153 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL)))) in isBytewiseValue()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3689 return translateCopy(C, *CV->getElementAsConstant(0), *EntryBuilder); in translate()
3692 Constant &Elt = *CV->getElementAsConstant(i); in translate()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp262 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1863 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()