jacek added a comment. It works nice with my testing so far, thanks!
I noticed one problem with code that defines symbols in assembly. It conflicts with anti-dependency symbols emitted by codegen and hits an asserts in assembly printer. This commit fixes it for me: https://github.com/cjacek/llvm-project/commit/879b1b6bf99b1e506ae04b8db0b44eb1b2205f19 Here is a test case: extern void asmfunc(void); __asm__( ".globl \"#asmfunc\"\n" "\t.section .text,\"xr\",discard,\"#asmfunc\"\n" "\"#asmfunc\":\n\t" "nop; ret\n\t" ); void test(void) { asmfunc(); } Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157547/new/ https://reviews.llvm.org/D157547 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits