Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziqi-Yang committed Sep 6, 2024
1 parent a9a6fb7 commit cd8ad96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/el_psy_congaroo.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

m = utils.parse_assembly(asm_str)

print(m.context)
# with core.Context.get_global_context() as ctx:
# print(ctx)
assert(m.context == m.context)

assert(list(m.global_variables)[0].type.context == m.context)
4 changes: 3 additions & 1 deletion src/llvm/Core/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ void bindValueClasses(nb::module_ &m) {
return get_value_str(self.get());
})
.def_prop_ro("type",
[](PymValue &v) { return PymTypeAuto(LLVMTypeOf(v.get())); })
[](PymValue &v) {
return PymTypeAuto(LLVMTypeOf(v.get()));
})
.def_prop_ro("kind",
[](PymValue &v) { return LLVMGetValueKind(v.get()); })
// NOTE LLVMSetValueName and LLVMGetValueName are depreciated
Expand Down

0 comments on commit cd8ad96

Please sign in to comment.