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

Halide front end #97

Open
ashriram opened this issue Nov 15, 2019 · 1 comment
Open

Halide front end #97

ashriram opened this issue Nov 15, 2019 · 1 comment

Comments

@ashriram
Copy link

ashriram commented Nov 15, 2019

I am playing around with the halide front-end for Tapir.
Is there an elegant way to generate the bitcode prior to lowering to a cilk runtime and ABI.

The reason is we are currently taking hijacking Tapir's target-independent bitcode (i.e., reattaches, syncs, detaches) to plug into an FPGA backend.

I see the use of CilkABI as the within
https://github.com/wsmoses/Halide/blob/958cd01f3505b11bfb6e641b9c0c9dd229854d56/src/CodeGen_LLVM.cpp#L1042
Is there a NoneTarget or a target that does not lower to a specific runtime?

Thanks

@neboat
Copy link
Collaborator

neboat commented Nov 15, 2019

Depending on which branch of Tapir you're using, you should be able to pass the flags -S -emit-llvm -ftapir=none to clang to get the LLVM IR with Tapir constructs.

Edit: Sorry, I overlooked the fact that you're using the Halide front end. With some versions of Tapir, setting tapirTarget in a PassManagerBuilder to nullptr should cause it to perform no lowering. Give that a try.

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

No branches or pull requests

2 participants