| /llvm-project-15.0.7/llvm/lib/Target/BPF/ |
| H A D | BPFISelDAGToDAG.cpp | 429 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray() 432 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | LoopUnrollAnalyzer.cpp | 143 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
|
| H A D | TargetTransformInfo.cpp | 744 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) in getOperandInfo()
|
| H A D | ValueTracking.cpp | 3985 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I), DL)))) in isBytewiseValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibCalls.cpp | 704 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold() 1599 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall() 1600 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall() 1601 Constant *celt2 = CDV2 ? CDV2->getElementAsConstant(i) : nullptr; in evaluateCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 181 Args.push_back(AggrC->getElementAsConstant(i)); in preprocessCompositeConstants()
|
| H A D | SPIRVPreLegalizer.cpp | 69 GR->add(ConstVec->getElementAsConstant(i), &MF, in addConstantsToTrack()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 624 Constant *getElementAsConstant(unsigned i) const;
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 433 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement() 3210 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant() function in ConstantDataSequential 3257 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
|
| H A D | AsmWriter.cpp | 1490 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), WriterCtx); in WriteConstantInternal() 1495 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), WriterCtx); in WriteConstantInternal()
|
| H A D | ConstantFold.cpp | 2180 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I)); in ConstantFoldGetElementPtr()
|
| H A D | Core.cpp | 1456 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGDecl.cpp | 918 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero() 950 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
|
| H A D | CGExprConstant.cpp | 359 return CDS->getElementAsConstant(Elem); in split()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 1913 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 3053 return translateCopy(C, *CV->getElementAsConstant(0), *EntryBuilder); in translate() 3056 Constant &Elt = *CV->getElementAsConstant(i); in translate()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 266 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/llvm/ |
| H A D | llvm.mli | 1048 See the method ConstantDataSequential::getElementAsConstant. *)
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 1583 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()
|