2

In Clang, is there a way to embed LLVM IR directly into C++? For example, can a GNU-style asm statement contain LLVM IR instead of machine code?

More specifically, I'm adding some experimental intrinsics to LLVM, and would like to generate calls to them from C++. Do I have to modify Clang to do this, or is there a shortcut?

Cœur
  • 34,719
  • 24
  • 185
  • 251
Arch D. Robison
  • 3,583
  • 1
  • 14
  • 26

0 Answers0