diff --git a/external/llvm-project b/external/llvm-project index 703ef17e7..369c51a74 160000 --- a/external/llvm-project +++ b/external/llvm-project @@ -1 +1 @@ -Subproject commit 703ef17e7a0a0f51e1d000bb1f71ad437a9933e4 +Subproject commit 369c51a74b5327464e27e0749ca7ac59ac1349ce diff --git a/lib/Dialect/ATen/Transforms/ATenLoweringPass.cpp b/lib/Dialect/ATen/Transforms/ATenLoweringPass.cpp index 29f6ed71b..d176c968d 100644 --- a/lib/Dialect/ATen/Transforms/ATenLoweringPass.cpp +++ b/lib/Dialect/ATen/Transforms/ATenLoweringPass.cpp @@ -200,6 +200,7 @@ static FuncOp getATenFn(ModuleOp module, std::string mangledFunctionName, if (!fn) { fn = FuncOp::create(builder.getUnknownLoc(), mangledFunctionName, fnTy); + fn.setVisibility(SymbolTable::Visibility::Private); module.push_back(fn); } diff --git a/python/npcomp/dialect/Basicpy.py b/python/npcomp/dialect/Basicpy.py index b5c46db81..738191f19 100644 --- a/python/npcomp/dialect/Basicpy.py +++ b/python/npcomp/dialect/Basicpy.py @@ -30,7 +30,7 @@ class DialectHelper(_BaseDialectHelper): >>> h.builder.insert_block_start(m.first_block) >>> _ = h.basicpy_singleton_op(h.basicpy_NoneType) >>> m.to_asm().strip() - 'module {\n %0 = basicpy.singleton : !basicpy.NoneType\n}' + 'module {\n %0 = basicpy.singleton : !basicpy.NoneType\n}' slot_object ops: >>> m = c.new_module() @@ -39,7 +39,7 @@ class DialectHelper(_BaseDialectHelper): >>> slot_object = h.basicpy_slot_object_make_op("foobar", v0, v0).result >>> _ = h.basicpy_slot_object_get_op(slot_object, 0) >>> print(m.to_asm().strip()) - module { + module { %0 = basicpy.singleton : !basicpy.NoneType %1 = basicpy.slot_object_make(%0, %0) -> !basicpy.SlotObject %2 = basicpy.slot_object_get %1[0] : !basicpy.SlotObject