mirror of https://github.com/llvm/torch-mlir
Bump llvm-project to 369c51a74b5327464e27e0749ca7ac59ac1349ce
parent
67d6694fdc
commit
c60d7b4aae
|
@ -1 +1 @@
|
||||||
Subproject commit 703ef17e7a0a0f51e1d000bb1f71ad437a9933e4
|
Subproject commit 369c51a74b5327464e27e0749ca7ac59ac1349ce
|
|
@ -200,6 +200,7 @@ static FuncOp getATenFn(ModuleOp module, std::string mangledFunctionName,
|
||||||
|
|
||||||
if (!fn) {
|
if (!fn) {
|
||||||
fn = FuncOp::create(builder.getUnknownLoc(), mangledFunctionName, fnTy);
|
fn = FuncOp::create(builder.getUnknownLoc(), mangledFunctionName, fnTy);
|
||||||
|
fn.setVisibility(SymbolTable::Visibility::Private);
|
||||||
module.push_back(fn);
|
module.push_back(fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class DialectHelper(_BaseDialectHelper):
|
||||||
>>> h.builder.insert_block_start(m.first_block)
|
>>> h.builder.insert_block_start(m.first_block)
|
||||||
>>> _ = h.basicpy_singleton_op(h.basicpy_NoneType)
|
>>> _ = h.basicpy_singleton_op(h.basicpy_NoneType)
|
||||||
>>> m.to_asm().strip()
|
>>> m.to_asm().strip()
|
||||||
'module {\n %0 = basicpy.singleton : !basicpy.NoneType\n}'
|
'module {\n %0 = basicpy.singleton : !basicpy.NoneType\n}'
|
||||||
|
|
||||||
slot_object ops:
|
slot_object ops:
|
||||||
>>> m = c.new_module()
|
>>> m = c.new_module()
|
||||||
|
@ -39,7 +39,7 @@ class DialectHelper(_BaseDialectHelper):
|
||||||
>>> slot_object = h.basicpy_slot_object_make_op("foobar", v0, v0).result
|
>>> slot_object = h.basicpy_slot_object_make_op("foobar", v0, v0).result
|
||||||
>>> _ = h.basicpy_slot_object_get_op(slot_object, 0)
|
>>> _ = h.basicpy_slot_object_get_op(slot_object, 0)
|
||||||
>>> print(m.to_asm().strip())
|
>>> print(m.to_asm().strip())
|
||||||
module {
|
module {
|
||||||
%0 = basicpy.singleton : !basicpy.NoneType
|
%0 = basicpy.singleton : !basicpy.NoneType
|
||||||
%1 = basicpy.slot_object_make(%0, %0) -> !basicpy.SlotObject<foobar, !basicpy.NoneType, !basicpy.NoneType>
|
%1 = basicpy.slot_object_make(%0, %0) -> !basicpy.SlotObject<foobar, !basicpy.NoneType, !basicpy.NoneType>
|
||||||
%2 = basicpy.slot_object_get %1[0] : !basicpy.SlotObject<foobar, !basicpy.NoneType, !basicpy.NoneType>
|
%2 = basicpy.slot_object_get %1[0] : !basicpy.SlotObject<foobar, !basicpy.NoneType, !basicpy.NoneType>
|
||||||
|
|
Loading…
Reference in New Issue