| /llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/ |
| H A D | constraint-failure.pdll | 4 // Constraint Structure 8 Constraint {} 19 Constraint Foo() { 26 Constraint Foo() { 33 Constraint Foo() { 68 Constraint Foo() { 74 Constraint Foo() { 75 Constraint Foo() {}; 85 Constraint Foo {} 90 Constraint Foo(10{} [all …]
|
| H A D | constraint.pdll | 5 Constraint Foo(); 11 Constraint Foo() [{ /* Native Code */ }]; 25 Constraint Foo(arg: Value) -> Value => arg; 45 Constraint Foo() -> (result1: Value, result2: Attr) => (_: Value, attr<"10">); 60 Constraint Bar(input: Value); 62 Constraint Foo(arg: Bar) -> Bar => arg; 71 Constraint Outer() { 72 Constraint() {}; 73 Constraint() => attr<"10">;
|
| /llvm-project-15.0.7/mlir/lib/TableGen/ |
| H A D | Constraint.cpp | 19 Constraint::Constraint(const llvm::Record *record) in Constraint() function in Constraint 20 : Constraint(record, CK_Uncategorized) { in Constraint() 38 Pred Constraint::getPredicate() const { in getPredicate() 54 StringRef Constraint::getSummary() const { in getSummary() 60 StringRef Constraint::getDescription() const { in getDescription() 64 StringRef Constraint::getDefName() const { in getDefName() 70 std::string Constraint::getUniqueDefName() const { in getUniqueDefName() 116 Constraint DenseMapInfo<Constraint>::getEmptyKey() { in getEmptyKey() 121 Constraint DenseMapInfo<Constraint>::getTombstoneKey() { in getTombstoneKey() 126 unsigned DenseMapInfo<Constraint>::getHashValue(Constraint constraint) { in getHashValue() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/TableGen/ |
| H A D | Constraint.h | 30 class Constraint { 38 Constraint(const llvm::Record *record); 41 bool operator==(const Constraint &that) { return def == that.def; } 42 bool operator!=(const Constraint &that) { return def != that.def; } 88 AppliedConstraint(Constraint &&constraint, StringRef self, 91 Constraint constraint; 106 struct DenseMapInfo<mlir::tblgen::Constraint> { 109 static mlir::tblgen::Constraint getEmptyKey(); 110 static mlir::tblgen::Constraint getTombstoneKey(); 112 static bool isEqual(mlir::tblgen::Constraint lhs, [all …]
|
| H A D | CodeGenHelpers.h | 29 class Constraint; variable 131 StringRef getTypeConstraintFn(const Constraint &constraint) const; 146 Optional<StringRef> getAttrConstraintFn(const Constraint &constraint) const; 154 StringRef getSuccessorConstraintFn(const Constraint &constraint) const; 163 StringRef getRegionConstraintFn(const Constraint &constraint) const; 191 using ConstraintMap = llvm::MapVector<Constraint, std::string, 192 llvm::DenseMap<Constraint, unsigned>>; 202 Constraint constraint);
|
| H A D | Successor.h | 20 class Successor : public Constraint { 22 using Constraint::Constraint; 24 static bool classof(const Constraint *c) { in classof()
|
| H A D | Region.h | 20 class Region : public Constraint { 22 using Constraint::Constraint; 24 static bool classof(const Constraint *c) { return c->getKind() == CK_Region; } in classof()
|
| H A D | Type.h | 30 class TypeConstraint : public Constraint { 32 using Constraint::Constraint; 36 static bool classof(const Constraint *c) { return c->getKind() == CK_Type; } in classof()
|
| H A D | Attribute.h | 33 class AttrConstraint : public Constraint { 35 using Constraint::Constraint; 37 static bool classof(const Constraint *c) { return c->getKind() == CK_Attr; } in classof()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | SemaConcept.h | 92 NormalizedConstraint(AtomicConstraint *C): Constraint{C} { }; in NormalizedConstraint() 95 : Constraint{CompoundConstraint{ in NormalizedConstraint() 103 Constraint = CompoundConstraint( in NormalizedConstraint() 111 Constraint(Other.Constraint) { in NormalizedConstraint() 112 Other.Constraint = nullptr; in NormalizedConstraint() 118 std::swap(Constraint, Temp.Constraint); 125 return Constraint.get<CompoundConstraint>().getInt(); in getCompoundKind() 128 bool isAtomic() const { return Constraint.is<AtomicConstraint *>(); } in isAtomic() 132 return Constraint.get<CompoundConstraint>().getPointer()->first; in getLHS() 137 return Constraint.get<CompoundConstraint>().getPointer()->second; in getRHS() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/ODS/ |
| H A D | Constraint.h | 32 class Constraint { 47 Constraint(StringRef name, StringRef summary) in Constraint() function 49 Constraint(const Constraint &) = delete; 63 class AttributeConstraint : public Constraint { 70 : Constraint(name, summary), cppClassName(cppClassName.str()) {} in AttributeConstraint() 84 class TypeConstraint : public Constraint { 91 : Constraint(name, summary), cppClassName(cppClassName.str()) {} in TypeConstraint()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | DependenceAnalysis.h | 381 class Constraint { 616 Constraint &NewConstraint, 654 Constraint &NewConstraint) const; 672 Constraint &NewConstraint, 691 Constraint &NewConstraint) const; 854 bool intersectConstraints(Constraint *X, 855 const Constraint *Y); 865 SmallVectorImpl<Constraint> &Constraints, 875 Constraint &CurConstraint, 883 Constraint &CurConstraint); [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticCanonicalization.td | 120 [(Constraint<CPred<"$0.getType() == $1.getType()">> $a, $b), 121 …(Constraint<CPred<"$0.getValue() == arith::CmpIPredicate::eq || $0.getValue() == arith::CmpIPredic… 129 [(Constraint<CPred<"$0.getType() == $1.getType()">> $a, $b), 130 …(Constraint<CPred<"$0.getValue() == arith::CmpIPredicate::eq || $0.getValue() == arith::CmpIPredic… 140 [(Constraint<CPred<"$0.getType() == $1.getType()">> $res, $x)]>; 169 [(Constraint<CPred<"$0.getType() == $1.getType()">> $x, $y)]>; 174 [(Constraint<CPred<"$0.getType() == $1.getType()">> $x, $y)]>; 183 [(Constraint<CPred<"$0.getType() == $1.getType()">> $x, $y)]>; 188 [(Constraint<CPred<"$0.getType() == $1.getType()">> $x, $y)]>; 197 [(Constraint<CPred<"$0.getType() == $1.getType()">> $x, $y)]>; [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | CanonicalizationPatterns.td | 22 def IdenticalTypePred : Constraint<CPred<"$0.getType() == $1.getType()">>; 23 def IntegerTypePred : Constraint<CPred<"fir::isa_integer($0.getType())">>; 24 def IndexTypePred : Constraint<CPred<"$0.getType().isa<mlir::IndexType>()">>; 29 : Constraint<CPred<"(($0.getType().isa<mlir::IntegerType>() && " 44 def IntPred : Constraint<CPred< 50 def SmallerWidthPred : Constraint<CPred< 53 def StrictSmallerWidthPred : Constraint<CPred<
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | AArch64.h | 128 std::string convertConstraint(const char *&Constraint) const override { in convertConstraint() argument 130 switch (*Constraint) { in convertConstraint() 132 R = std::string("@3") + std::string(Constraint, 3); in convertConstraint() 133 Constraint += 2; in convertConstraint() 136 R = TargetInfo::convertConstraint(Constraint); in convertConstraint() 145 validateConstraintModifier(StringRef Constraint, char Modifier, unsigned Size, 149 StringRef getConstraintRegister(StringRef Constraint, in getConstraintRegister() argument
|
| H A D | SystemZ.h | 85 std::string convertConstraint(const char *&Constraint) const override { in convertConstraint() argument 86 switch (Constraint[0]) { in convertConstraint() 90 switch (Constraint[1]) { in convertConstraint() 98 return std::string("^") + std::string(Constraint++, 2); in convertConstraint() 106 return TargetInfo::convertConstraint(Constraint); in convertConstraint()
|
| H A D | X86.cpp | 1411 while (Constraint[0] == '=' || Constraint[0] == '+' || Constraint[0] == '&') in validateOutputSize() 1412 Constraint = Constraint.substr(1); in validateOutputSize() 1414 return validateOperandSize(FeatureMap, Constraint, Size); in validateOutputSize() 1426 switch (Constraint[0]) { in validateOperandSize() 1439 switch (Constraint[1]) { in validateOperandSize() 1482 switch (*Constraint) { in convertConstraint() 1484 if (auto Len = matchAsmCCConstraint(Constraint)) { in convertConstraint() 1486 Constraint += Len - 1; in convertConstraint() 1489 return std::string(1, *Constraint); in convertConstraint() 1509 switch (Constraint[1]) { in convertConstraint() [all …]
|
| H A D | AMDGPU.h | 233 std::string convertConstraint(const char *&Constraint) const override { in convertConstraint() argument 235 StringRef S(Constraint); in convertConstraint() 237 return std::string("^") + std::string(Constraint++, 2); in convertConstraint() 240 const char *Begin = Constraint; in convertConstraint() 242 if (validateAsmConstraint(Constraint, Info)) in convertConstraint() 243 return std::string(Begin).substr(0, Constraint - Begin + 1); in convertConstraint() 245 Constraint = Begin; in convertConstraint() 246 return std::string(1, *Constraint); in convertConstraint()
|
| H A D | M68k.cpp | 218 std::string M68kTargetInfo::convertConstraint(const char *&Constraint) const { in convertConstraint() 219 if (*Constraint == 'C') in convertConstraint() 221 return std::string("^") + std::string(Constraint++, 2); in convertConstraint() 223 return std::string(1, *Constraint); in convertConstraint()
|
| H A D | Mips.h | 268 std::string convertConstraint(const char *&Constraint) const override { in convertConstraint() argument 270 switch (*Constraint) { in convertConstraint() 272 if (Constraint[1] == 'C') { in convertConstraint() 273 R = std::string("^") + std::string(Constraint, 2); in convertConstraint() 274 Constraint++; in convertConstraint() 279 return TargetInfo::convertConstraint(Constraint); in convertConstraint()
|
| /llvm-project-15.0.7/llvm/lib/TextAPI/ |
| H A D | TextStubCommon.cpp | 35 IO &IO, ObjCConstraintType &Constraint) { in enumeration() argument 36 IO.enumCase(Constraint, "none", ObjCConstraintType::None); in enumeration() 37 IO.enumCase(Constraint, "retain_release", ObjCConstraintType::Retain_Release); in enumeration() 38 IO.enumCase(Constraint, "retain_release_for_simulator", in enumeration() 40 IO.enumCase(Constraint, "retain_release_or_gc", in enumeration() 42 IO.enumCase(Constraint, "gc", ObjCConstraintType::GC); in enumeration()
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/MCParser/ |
| H A D | MCParsedAsmOperand.h | 31 std::string Constraint; variable 45 void setConstraint(StringRef C) { Constraint = C.str(); } in setConstraint() 46 StringRef getConstraint() { return Constraint; } in getConstraint()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprConcepts.h | 422 NestedRequirement(Expr *Constraint) : in NestedRequirement() argument 424 Constraint->containsUnexpandedParameterPack()), in NestedRequirement() 425 Value(Constraint) { in NestedRequirement() 426 assert(Constraint->isInstantiationDependent() && in NestedRequirement() 431 NestedRequirement(ASTContext &C, Expr *Constraint, in NestedRequirement() argument 433 Requirement(RK_Nested, Constraint->isInstantiationDependent(), in NestedRequirement() 434 Constraint->containsUnexpandedParameterPack(), in NestedRequirement() 436 Value(Constraint), in NestedRequirement()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | InlineAsm.h | 331 static unsigned getFlagWordForMem(unsigned InputFlag, unsigned Constraint) { in getFlagWordForMem() argument 333 assert(Constraint <= 0x7fff && "Too large a memory constraint ID"); in getFlagWordForMem() 334 assert(Constraint <= Constraints_Max && "Unknown constraint ID"); in getFlagWordForMem() 336 return InputFlag | (Constraint << Constraints_ShiftAmount); in getFlagWordForMem() 425 static StringRef getMemConstraintName(unsigned Constraint) { in getMemConstraintName() argument 426 switch (Constraint) { in getMemConstraintName()
|
| /llvm-project-15.0.7/mlir/tools/mlir-tblgen/ |
| H A D | CodeGenHelpers.cpp | 74 const Constraint &constraint) const { in getTypeConstraintFn() 83 const Constraint &constraint) const { in getAttrConstraintFn() 90 const Constraint &constraint) const { in getSuccessorConstraintFn() 98 const Constraint &constraint) const { in getRegionConstraintFn() 259 Constraint constraint) { in collectConstraint()
|