Bump llvm-project to 369c51a74b5327464e27e0749ca7ac59ac1349ce

pull/123/head
Sean Silva 2020-11-20 13:03:24 -08:00
parent 67d6694fdc
commit c60d7b4aae
3 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 703ef17e7a0a0f51e1d000bb1f71ad437a9933e4
Subproject commit 369c51a74b5327464e27e0749ca7ac59ac1349ce

View File

@ -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);
}

View File

@ -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<foobar, !basicpy.NoneType, !basicpy.NoneType>
%2 = basicpy.slot_object_get %1[0] : !basicpy.SlotObject<foobar, !basicpy.NoneType, !basicpy.NoneType>