| /llvm-project-15.0.7/llvm/lib/Option/ |
| H A D | Option.cpp | 138 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 D | BuiltinAttributes.cpp | 301 .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 D | AttributeTest.cpp | 28 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 D | InferTypeOpInterface.cpp | 54 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 D | DataLayoutInterfaces.cpp | 107 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 D | BuiltinAttributes.h | 227 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 D | BuiltinAttributeInterfaces.td | 93 // 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 D | Arg.h | 117 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 D | TosaFoldConstantTranspose.cpp | 45 permAttr.getValues<APInt>(), in matchAndRewrite() 58 auto attrValues = inputValues.getValues<Attribute>(); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/Quant/ |
| H A D | QuantizationUtilsTest.cpp | 117 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 D | Utils.cpp | 105 return L.getValues() == R.getValues(); in operator ==()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/ |
| H A D | ControlFlowOps.cpp | 557 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 D | GVNSink.cpp | 288 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 D | CodeGenMapTable.cpp | 134 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 D | CodeEmitterGen.cpp | 302 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 D | mlir-tblgen.cpp | 86 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 D | PDLInterp.cpp | 185 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 D | Shape.cpp | 59 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 D | AST.cpp | 138 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 D | ConstantFold.cpp | 212 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 D | AST.h | 90 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 D | QuantizeUtils.cpp | 73 DenseElementsAttr realDenseAttr = realSparseAttr.getValues(); in convertSparseElementsAttr()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | OperationSupport.cpp | 394 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 D | Interfaces.cpp | 78 for (llvm::Init *init : listInit->getValues()) in Interface()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Affine/Analysis/ |
| H A D | AffineStructures.h | 417 inline void getValues(unsigned start, unsigned end, in getValues() function 427 getValues(0, getNumDimAndSymbolVars(), values); in getAllValues()
|