Skip to content

Commit 5c7ce45

Browse files
author
Prashant Kumar
committed
Update external llvm to 966b720
The external llvm is updated to point to https://reviews.llvm.org/rG966b72098363d44adf2882b9c34fcdbe344ff913. Some of the changes wrt. NamedAttr has been addressed. Signed-off-by: Prashant Kumar <[email protected]>
1 parent b0cb49c commit 5c7ce45

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

e2e_testing/torchscript/xfail_sets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
# and very few tests work yet.
3030
TOSA_PASS_SET = {
3131
"ElementwiseUnaryModule_basic",
32+
"ElementwiseBinaryModule_basic",
3233
"ElementwiseSigmoidModule_basic",
3334
"ElementwiseReluModule_basic",
3435
"ElementwiseFloorModule_basic",

external/llvm-project

Submodule llvm-project updated 2678 files

lib/Dialect/Torch/IR/TorchDialect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ LogicalResult TorchDialect::verifyRegionArgAttribute(Operation *op,
9393
unsigned regionIndex,
9494
unsigned argIndex,
9595
NamedAttribute namedAttr) {
96-
if (namedAttr.first == "torch.type_bound") {
96+
if (namedAttr.getName().getValue() == "torch.type_bound") {
9797
auto func = dyn_cast<FuncOp>(op);
9898
if (!func)
9999
return op->emitError() << "'torch.type_bound' must be attached to a func";
100-
TypeAttr attr = namedAttr.second.dyn_cast<TypeAttr>();
100+
TypeAttr attr = namedAttr.getValue().dyn_cast<TypeAttr>();
101101
if (!attr)
102102
return op->emitError() << "'torch.type_bound' must be TypeAttr";
103103
auto type = attr.getValue().dyn_cast<BaseTensorType>();
@@ -110,8 +110,8 @@ LogicalResult TorchDialect::verifyRegionArgAttribute(Operation *op,
110110
return success();
111111
}
112112

113-
return op->emitError() << "unknown region arg attribute '" << namedAttr.first
114-
<< "'";
113+
return op->emitError() << "unknown region arg attribute '"
114+
<< namedAttr.getName().getValue() << "'";
115115
}
116116

117117
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)