Skip to content

Commit baaf747

Browse files
authored
1 parent 4227a87 commit baaf747

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ workspace(name = "stablehlo")
1717

1818
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1919

20-
LLVM_COMMIT = "3a6b818132e3133c7d33f8f577e62503f12869b4"
20+
LLVM_COMMIT = "32de3b9ef9e7e8debc14416e968456ca13b48bea"
2121

22-
LLVM_SHA256 = "a0b3de698393e0f49d0aca3f869cc03bf0c59eba0c65f608e565278943c31958"
22+
LLVM_SHA256 = "e048b05e1fb9366e224ea3c06f8473714114039bfad00e81db4ecb6409f23efa"
2323

2424
http_archive(
2525
name = "llvm-raw",

build_tools/llvm_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3a6b818132e3133c7d33f8f577e62503f12869b4
1+
32de3b9ef9e7e8debc14416e968456ca13b48bea

stablehlo/dialect/Base.td

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -72,45 +72,45 @@ def IsValidQuantizedDimension : CPred<"mlir::hlo::isValidQuantizedDimension($_se
7272

7373
// TODO(b/230381284): Upstream width-specific uniform quantized element types.
7474
class StableHLO_UniformQuantizedSignedInt<int width>
75-
: Type<And<[CPred<"isa<mlir::quant::UniformQuantizedType>($_self)">,
76-
CPred<"cast<mlir::quant::UniformQuantizedType>($_self)" #
75+
: Type<And<[CPred<"::llvm::isa<::mlir::quant::UniformQuantizedType>($_self)">,
76+
CPred<"::llvm::cast<::mlir::quant::UniformQuantizedType>($_self)" #
7777
".getStorageTypeIntegralWidth() == " # width>,
78-
CPred<"cast<mlir::IntegerType>(" #
79-
"cast<mlir::quant::UniformQuantizedType>($_self).getStorageType()" #
78+
CPred<"::llvm::cast<::mlir::IntegerType>(" #
79+
"::llvm::cast<::mlir::quant::UniformQuantizedType>($_self).getStorageType()" #
8080
").isSignless()">, IsValidStablehloQuantizedElementType]>,
8181
"QI" # width # " type"> {
8282
string name = "UniformQuantizedSignedInt";
8383
int bitwidth = width;
8484
}
8585

8686
class StableHLO_UniformQuantizedPerAxisSignedInt<int width>
87-
: Type<And<[CPred<"isa<mlir::quant::UniformQuantizedPerAxisType>($_self)">,
88-
CPred<"cast<mlir::quant::UniformQuantizedPerAxisType>($_self)" #
87+
: Type<And<[CPred<"::llvm::isa<::mlir::quant::UniformQuantizedPerAxisType>($_self)">,
88+
CPred<"::llvm::cast<::mlir::quant::UniformQuantizedPerAxisType>($_self)" #
8989
".getStorageTypeIntegralWidth() == " # width>,
90-
CPred<"cast<mlir::IntegerType>(" #
91-
"cast<mlir::quant::UniformQuantizedPerAxisType>($_self).getStorageType()" #
90+
CPred<"::llvm::cast<::mlir::IntegerType>(" #
91+
"::llvm::cast<::mlir::quant::UniformQuantizedPerAxisType>($_self).getStorageType()" #
9292
").isSignless()">, IsValidStablehloQuantizedElementType]>,
9393
"QI" # width # " type"> {
9494
string name = "UniformQuantizedPerAxisSignedInt";
9595
int bitwidth = width;
9696
}
9797

9898
class StableHLO_UniformQuantizedUnsignedInt<int width>
99-
: Type<And<[CPred<"isa<mlir::quant::UniformQuantizedType>($_self)">,
100-
CPred<"cast<mlir::quant::UniformQuantizedType>($_self)" #
99+
: Type<And<[CPred<"::llvm::isa<::mlir::quant::UniformQuantizedType>($_self)">,
100+
CPred<"::llvm::cast<::mlir::quant::UniformQuantizedType>($_self)" #
101101
".getStorageTypeIntegralWidth() == " # width>,
102-
CPred<"!cast<mlir::quant::UniformQuantizedType>($_self)" #
102+
CPred<"!::llvm::cast<::mlir::quant::UniformQuantizedType>($_self)" #
103103
".isSigned()">, IsValidStablehloQuantizedElementType]>,
104104
"QUI" # width # " type"> {
105105
string name = "UniformQuantizedUnsignedInt";
106106
int bitwidth = width;
107107
}
108108

109109
class StableHLO_UniformQuantizedPerAxisUnsignedInt<int width>
110-
: Type<And<[CPred<"isa<mlir::quant::UniformQuantizedPerAxisType>($_self)">,
111-
CPred<"cast<mlir::quant::UniformQuantizedPerAxisType>($_self)" #
110+
: Type<And<[CPred<"::llvm::isa<::mlir::quant::UniformQuantizedPerAxisType>($_self)">,
111+
CPred<"::llvm::cast<::mlir::quant::UniformQuantizedPerAxisType>($_self)" #
112112
".getStorageTypeIntegralWidth() == " # width>,
113-
CPred<"!cast<mlir::quant::UniformQuantizedPerAxisType>($_self)" #
113+
CPred<"!::llvm::cast<::mlir::quant::UniformQuantizedPerAxisType>($_self)" #
114114
".isSigned()">, IsValidStablehloQuantizedElementType]>,
115115
"QUI" # width # " type"> {
116116
string name = "UniformQuantizedPerAxisUnsignedInt";
@@ -152,7 +152,7 @@ def HLO_PerAxisQuantizedInt :
152152
AnyTypeOf<[HLO_PerAxisQuantizedSignedInt, HLO_PerAxisQuantizedUnsignedInt], "per-axis integer quantized">;
153153

154154
// Token type.
155-
def HLO_Token : Type<CPred<"isa<TokenType>($_self)">, "token">;
155+
def HLO_Token : Type<CPred<"::llvm::isa<::mlir::stablehlo::TokenType>($_self)">, "token">;
156156

157157
// Any integer tensor types
158158
def HLO_IntTensor : RankedTensorOf<[HLO_Int]>;

stablehlo/dialect/StablehloAttrs.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def StableHLO_TypeExtensions : AttrDef<StableHLO_Dialect, "TypeExtensions", [
172172
// A layout attribute (1D tensor of index type)
173173
def StableHLO_LayoutAttr : Attr<
174174
And<[IndexElementsAttr.predicate,
175-
CPred<[{cast<::mlir::DenseIntElementsAttr>($_self).getType().getRank()
175+
CPred<[{::llvm::cast<::mlir::DenseIntElementsAttr>($_self).getType().getRank()
176176
== 1}]>]>,
177177
"A 1D tensor of index type (layout)"> {
178178
let storageType = IndexElementsAttr.storageType;

0 commit comments

Comments
 (0)