Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/eigenscript/compiler/codegen/llvm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def _generate_relation(self, node: Relation) -> ir.Value:
raise CompilerError(
f"Function '{mangled_name}' not found",
hint=f"Make sure module '{module_name}' is imported and compiled first",
node=node
node=node,
)

# Generate the argument (same logic as user-defined functions)
Expand All @@ -1160,9 +1160,7 @@ def _generate_relation(self, node: Relation) -> ir.Value:
elif gen_arg.kind == ValueKind.EIGEN_PTR:
call_arg = gen_arg.value
else:
raise TypeError(
"Cannot pass List to function expecting EigenValue"
)
raise TypeError("Cannot pass List to function expecting EigenValue")
elif isinstance(gen_arg, ir.Value):
if gen_arg.type == self.double_type:
# JIT Promotion: Scalar -> Stack EigenValue
Expand Down Expand Up @@ -1361,7 +1359,7 @@ def _generate_member_access(self, node: MemberAccess) -> GeneratedValue:
raise CompilerError(
"Member access only supported for module.function pattern",
hint="Example: control.apply_damping",
node=node
node=node,
)

module_name = node.object.name
Expand Down