Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLVM Backend #23

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft

LLVM Backend #23

wants to merge 6 commits into from

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.

2 participants