Home
last modified time | relevance | path

Searched refs:getValues (Results 1 – 25 of 127) sorted by relevance

123456

/llvm-project-15.0.7/llvm/lib/Option/
H A DOption.cpp138 A->getValues().push_back(Value); in acceptInternal()
177 A->getValues().push_back(Args.getArgString(Index - getNumArgs() + i)); in acceptInternal()
215 A->getValues().push_back(Args.getArgString(Index++)); in acceptInternal()
222 A->getValues().push_back(Args.getArgString(Index) + ArgSize); in acceptInternal()
227 A->getValues().push_back(Args.getArgString(Index++)); in acceptInternal()
277 UnaliasedA->getValues() = RawA->getValues(); in accept()
286 UnaliasedA->getValues().push_back(Val); in accept()
294 UnaliasedA->getValues().push_back(""); in accept()
/llvm-project-15.0.7/mlir/lib/CAPI/IR/
H A DBuiltinAttributes.cpp301 .getValues<Attribute>()[llvm::makeArrayRef(idxs, rank)]); in mlirElementsAttrGetValue()
555 return unwrap(attr).cast<DenseElementsAttr>().getValues<bool>()[pos]; in mlirDenseElementsAttrGetBoolValue()
558 return unwrap(attr).cast<DenseElementsAttr>().getValues<int8_t>()[pos]; in mlirDenseElementsAttrGetInt8Value()
561 return unwrap(attr).cast<DenseElementsAttr>().getValues<uint8_t>()[pos]; in mlirDenseElementsAttrGetUInt8Value()
564 return unwrap(attr).cast<DenseElementsAttr>().getValues<int16_t>()[pos]; in mlirDenseElementsAttrGetInt16Value()
570 return unwrap(attr).cast<DenseElementsAttr>().getValues<int32_t>()[pos]; in mlirDenseElementsAttrGetInt32Value()
576 return unwrap(attr).cast<DenseElementsAttr>().getValues<int64_t>()[pos]; in mlirDenseElementsAttrGetInt64Value()
582 return unwrap(attr).cast<DenseElementsAttr>().getValues<float>()[pos]; in mlirDenseElementsAttrGetFloatValue()
585 return unwrap(attr).cast<DenseElementsAttr>().getValues<double>()[pos]; in mlirDenseElementsAttrGetDoubleValue()
590 unwrap(attr).cast<DenseElementsAttr>().getValues<StringRef>()[pos]); in mlirDenseElementsAttrGetStringValue()
[all …]
/llvm-project-15.0.7/mlir/unittests/IR/
H A DAttributeTest.cpp28 for (auto newValue : detectedSplat.template getValues<EltTy>()) in testSplat()
204 EXPECT_TRUE(attr.getValues<Attribute>()[0] == value); in TEST()
240 auto zeroIntValue = sparseInt.getValues<Attribute>()[{1, 1}]; in TEST()
244 auto zeroFloatValue = sparseFloat.getValues<Attribute>()[{1, 1}]; in TEST()
248 auto zeroStringValue = sparseString.getValues<Attribute>()[{1, 1}]; in TEST()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DInferTypeOpInterface.cpp54 for (auto it : dattr.getValues<APInt>()) in getDims()
74 .getValues<APInt>()[index] in getDimSize()
97 for (auto index : dattr.getValues<APInt>()) in hasStaticShape()
115 for (auto index : dattr.getValues<APInt>()) { in getNumElements()
H A DDataLayoutInterfaces.cpp107 entry.getValue().cast<DenseIntElementsAttr>().getValues<int32_t>(); in extractABIAlignment()
162 entry.getValue().cast<DenseIntElementsAttr>().getValues<int32_t>(); in extractPreferredAlignment()
509 auto elements = llvm::to_vector<2>(value.getValues<int32_t>()); in verifyDataLayoutSpec()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinAttributes.h227 decltype(std::declval<AttrT>().template getValues<T>());
400 iterator_range_impl<ElementIterator<T>> getValues() const {
429 iterator_range_impl<ElementIterator<T>> getValues() const {
457 iterator_range_impl<ElementIterator<StringRef>> getValues() const {
480 iterator_range_impl<AttributeElementIterator> getValues() const {
531 iterator_range_impl<BoolElementIterator> getValues() const {
553 iterator_range_impl<IntElementIterator> getValues() const {
574 iterator_range_impl<ComplexIntElementIterator> getValues() const {
592 iterator_range_impl<FloatElementIterator> getValues() const {
610 iterator_range_impl<ComplexFloatElementIterator> getValues() const {
[all …]
H A DBuiltinAttributeInterfaces.td93 // We can access value ranges for the data types via `getValues<T>`.
94 for (uint64_t value : attr.getValues<uint64_t>())
96 for (llvm::APInt value : attr.getValues<llvm::APInt>())
98 for (mlir::IntegerAttr value : attr.getValues<mlir::IntegerAttr>())
269 decltype(std::declval<AttrT>().template getValues<T>());
280 auto getValues() const {
351 DefaultValueCheckT<T, iterator_range<T>> getValues() const {
370 DerivedAttrValueIteratorRange<T> getValues() const {
372 return {Attribute::getType(), llvm::map_range(getValues<Attribute>(),
377 return getValues<T>().begin();
/llvm-project-15.0.7/llvm/include/llvm/Option/
H A DArg.h117 SmallVectorImpl<const char *> &getValues() { return Values; } in getValues() function
118 const SmallVectorImpl<const char *> &getValues() const { return Values; } in getValues() function
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaFoldConstantTranspose.cpp45 permAttr.getValues<APInt>(), in matchAndRewrite()
58 auto attrValues = inputValues.getValues<Attribute>(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/unittests/Dialect/Quant/
H A DQuantizationUtilsTest.cpp117 returnedValue.cast<ElementsAttr>().getValues<Attribute>()[{0, 0}]; in TEST()
143 returnedValue.cast<ElementsAttr>().getValues<Attribute>()[{0, 0}]; in TEST()
168 returnedValue.cast<ElementsAttr>().getValues<Attribute>()[{0, 0}]; in TEST()
/llvm-project-15.0.7/bolt/lib/Utils/
H A DUtils.cpp105 return L.getValues() == R.getValues(); in operator ==()
/llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/
H A DControlFlowOps.cpp557 for (const auto &it : llvm::enumerate(caseValues.getValues<APInt>())) { in printSwitchOpCases()
606 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) in getSuccessorForOperands()
647 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in dropSwitchCasesThatMatchDefault()
677 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in foldSwitch()
811 predCaseValues->getValues<APInt>()[it - predDests.begin()]); in simplifySwitchFromSwitchOnSameCondition()
862 caseValuesToRemove.insert(predCaseValues->getValues<APInt>()[i]); in simplifySwitchFromDefaultSwitchOnSameCondition()
871 for (const auto &it : llvm::enumerate(caseValues->getValues<APInt>())) { in simplifySwitchFromDefaultSwitchOnSameCondition()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DGVNSink.cpp288 ArrayRef<Value *> getValues() const { return Values; } in getValues() function in __anon7f9656e30111::ModelledPHI
613 for (auto *V : MPHI.getValues()) in analyzeInitialPHIs()
708 PHIContents.insert(PHI.getValues().begin(), PHI.getValues().end()); in analyzeInstructionForSinking()
713 for (auto *V : NewPHI.getValues()) in analyzeInstructionForSinking()
751 PHIContents.insert(PHI.getValues().begin(), PHI.getValues().end()); in analyzeInstructionForSinking()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCodeGenMapTable.cpp134 for (Init *I : ColValList->getValues()) { in InstrMap()
234 for (Init *RowField : RowFields->getValues()) { in buildRowInstrMap()
307 for (Init *RowField : RowFields->getValues()) { in getInstrForColumn()
483 for (Init *CF : ColFields->getValues()) { in emitTablesWithFunc()
H A DCodeEmitterGen.cpp302 for (const RecordVal &RV : R->getValues()) { in getInstructionCaseForEncoding()
313 for (const RecordVal &RV : EncodingDef->getValues()) { in getInstructionCaseForEncoding()
/llvm-project-15.0.7/mlir/tools/mlir-tblgen/
H A Dmlir-tblgen.cpp86 for (const RecordVal &val : record.getValues()) { in findUse()
99 for (Init *jt : li->getValues()) in findUse()
/llvm-project-15.0.7/mlir/lib/Dialect/PDLInterp/IR/
H A DPDLInterp.cpp185 p << ' ' << arg << " : " << arg.getType() << " in " << getValues() << ' '; in print()
201 if (rangeType != getValues().getType()) in verify()
/llvm-project-15.0.7/mlir/lib/Dialect/Shape/IR/
H A DShape.cpp59 llvm::append_range(shapeValues, attr.getValues<int64_t>()); in getShapeVec()
656 operands[0].cast<DenseIntElementsAttr>().getValues<int64_t>()); in fold()
658 operands[1].cast<DenseIntElementsAttr>().getValues<int64_t>()); in fold()
748 llvm::to_vector<8>(constShape.getShape().getValues<int64_t>()), in matchAndRewrite()
855 operands[0].cast<DenseIntElementsAttr>().getValues<int64_t>()); in fold()
857 operands[1].cast<DenseIntElementsAttr>().getValues<int64_t>()); in fold()
873 interleaveComma(getShape().getValues<int64_t>(), p); in print()
981 operand.cast<DenseIntElementsAttr>().getValues<int64_t>())); in fold()
1254 return elements.getValues<Attribute>()[(uint64_t)dim.value()]; in fold()
1714 operands[0].cast<DenseIntElementsAttr>().getValues<int64_t>()); in fold()
[all …]
/llvm-project-15.0.7/mlir/examples/toy/Ch7/parser/
H A DAST.cpp138 llvm::interleaveComma(literal->getValues(), llvm::errs(), in printLitHelper()
155 for (auto &value : node->getValues()) in dump()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DConstantFold.cpp212 inFpRanges.push_back(inputValues[i].getValues<APFloat>()); in matchAndRewrite()
233 inIntRanges.push_back(inputValues[i].getValues<APInt>()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/examples/toy/Ch7/include/toy/
H A DAST.h90 llvm::ArrayRef<std::unique_ptr<ExprAST>> getValues() { return values; } in getValues() function
107 llvm::ArrayRef<std::unique_ptr<ExprAST>> getValues() { return values; } in getValues() function
/llvm-project-15.0.7/mlir/lib/Dialect/Quant/Utils/
H A DQuantizeUtils.cpp73 DenseElementsAttr realDenseAttr = realSparseAttr.getValues(); in convertSparseElementsAttr()
/llvm-project-15.0.7/mlir/lib/IR/
H A DOperationSupport.cpp394 auto sizeData = owner.second.cast<DenseElementsAttr>().getValues<uint32_t>(); in join()
401 auto sizeData = object.second.cast<DenseElementsAttr>().getValues<uint32_t>(); in dereference()
494 SmallVector<int32_t, 8> segments(attr.getValues<int32_t>()); in updateLength()
523 object.second.getValue().cast<DenseElementsAttr>().getValues<uint32_t>(); in dereference()
/llvm-project-15.0.7/mlir/lib/TableGen/
H A DInterfaces.cpp78 for (llvm::Init *init : listInit->getValues()) in Interface()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/Analysis/
H A DAffineStructures.h417 inline void getValues(unsigned start, unsigned end, in getValues() function
427 getValues(0, getNumDimAndSymbolVars(), values); in getAllValues()

123456