Hello everyone, I have a question about compiler plugins.
My task is to use "syscall" not from "libc.so" but directly with the assembly command "syscall".
Since Kotlin does not support direct calling of assembly commands, I plan to write my own plugin for llvm which, at compilation time, will replace my design with calling an assembler command since llvm supports this.
So far I have only been able to save the .ll file after LTOBitcodeOptimization
The question is this.
- will this work?
- Is there any documentation on how to properly integrate into the optimization pipeline for this?