Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate LLVM at llvm/llvm-project@af20aff35ec3 #2673

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ cc_library(
":chlo_attrs_inc_gen",
":chlo_enums_inc_gen",
":chlo_ops_inc_gen",
":stablehlo_assembly_format",
":stablehlo_type_inference",
"@llvm-project//llvm:Support",
"@llvm-project//mlir:BytecodeOpInterface",
Expand Down
25 changes: 25 additions & 0 deletions stablehlo/dialect/ChloEnums.td
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,29 @@ def CHLO_ComparisonType : I32EnumAttr<"ComparisonType",

def CHLO_ComparisonTypeAttr : EnumAttr<CHLO_Dialect, CHLO_ComparisonType, "comparison_type">;

//===----------------------------------------------------------------------===//
// Ragged dot op definitions.
//===----------------------------------------------------------------------===//

// These mirror the XLA PrecisionConfig proto enum.
def CHLO_PRECISION_DEFAULT : I32EnumAttrCase<"DEFAULT", 0>;
def CHLO_PRECISION_HIGH : I32EnumAttrCase<"HIGH", 1>;
def CHLO_PRECISION_HIGHEST : I32EnumAttrCase<"HIGHEST", 2>;

def CHLO_Precision : I32EnumAttr<"Precision",
"XLA precision for an operand. Has backend specific meaning.",
[
CHLO_PRECISION_DEFAULT,
CHLO_PRECISION_HIGH,
CHLO_PRECISION_HIGHEST
]> {
let genSpecializedAttr = 0;
let cppNamespace = "::mlir::chlo";
}

def CHLO_PrecisionAttr : EnumAttr<CHLO_Dialect, CHLO_Precision, "precision">;

def CHLO_PrecisionConfigAttr:
TypedArrayAttrBase<CHLO_PrecisionAttr, "Precision Config attribute">;

#endif // STABLEHLO_DIALECT_CHLO_ENUMS
Loading