Skip to content

Conversation

@Yaraslaut
Copy link
Member

No description provided.

}
catch (std::exception const& e)
{
std::cout << "Exception caught: " << e.what();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

later on, we should bubble back errors in a way that does not require cout to work (imagine unit tests) :)

Comment on lines 279 to 283
void init()
{
InitializeNativeTarget();
InitializeNativeTargetAsmPrinter();
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in LLVM, is there a counter-part to these init functions? If so, we'd need to also be able to call them. That would then probably look like we're about to do that either via a class (e.g. LLVMBackend or LLVMRunner ....) whose destructor would ensure that, such that the caller doesn't need to care nor even know about its need of such calls.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is llvm functions, this is definetely will be inside LLVMBackend class constructor

@Yaraslaut Yaraslaut force-pushed the improvement/llvm_backend branch from 811da4d to d5c577e Compare February 2, 2024 08:00
@Yaraslaut Yaraslaut force-pushed the improvement/llvm_backend branch from d5c577e to fb11928 Compare February 2, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants