triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
12.7k stars 1.53k forks source link

How can I compile and use the triton-opt tool or triton-llvm-opt tool separately? #4628

Open Mark3123 opened 2 weeks ago

Mark3123 commented 2 weeks ago

I want to use the tools in the triton/bin folder, but I can't compile them separately. Is there any way to compile and use the triton-opt tool or triton-llvm-opt tool separately?

antiagainst commented 2 weeks ago

You can configure directly with CMake and compile the target binary you'd like. See this commit https://github.com/triton-lang/triton/commit/678bbe212a282121f718bbaff3ad55afbf3c0e7c 's message as an example of how to directly invoke CMake.