Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp136 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
H A DTargetTransformInfo.cpp423 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) in getOperandInfo()
H A DValueTracking.cpp3177 if (!(Val = Merge(Val, isBytewiseValue(CA->getElementAsConstant(I))))) in isBytewiseValue()
/freebsd-12.1/contrib/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp461 if (fillGenericConstant(DL, CDA->getElementAsConstant(i), Vals, Offset) == in fillConstantDataArray()
464 Offset += DL.getTypeAllocSize(CDA->getElementAsConstant(i)->getType()); in fillConstantDataArray()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp740 CV->getElementAsConstant((unsigned)eltNo)); in TDOFold()
1631 Constant *celt0 = CDV0 ? CDV0->getElementAsConstant(i) : nullptr; in evaluateCall()
1632 Constant *celt1 = CDV1 ? CDV1->getElementAsConstant(i) : nullptr; in evaluateCall()
1633 Constant *celt2 = CDV2 ? CDV2->getElementAsConstant(i) : nullptr; in evaluateCall()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstants.h629 Constant *getElementAsConstant(unsigned i) const;
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp346 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
2761 Constant *ConstantDataSequential::getElementAsConstant(unsigned Elt) const { in getElementAsConstant() function in ConstantDataSequential
2800 return isSplat() ? getElementAsConstant(0) : nullptr; in getSplatValue()
H A DAsmWriter.cpp1423 WriteAsOperandInternal(Out, CA->getElementAsConstant(0), in WriteConstantInternal()
1430 WriteAsOperandInternal(Out, CA->getElementAsConstant(i), &TypePrinter, in WriteConstantInternal()
H A DConstantFold.cpp2280 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I)); in ConstantFoldGetElementPtr()
H A DCore.cpp1360 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
/freebsd-12.1/contrib/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp1657 return translate(*CV->getElementAsConstant(0), Reg); in translate()
1660 Constant &Elt = *CV->getElementAsConstant(i); in translate()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGDecl.cpp884 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
913 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp988 Elts.push_back(DataArray->getElementAsConstant(i)); in EmitDesignatedInitUpdater()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1969 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp98 Constant *Elt = V->getElementAsConstant(I); in getNegativeIsTrueBoolVec()
358 auto SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1318 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()