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
  • 37,241
  • 25
  • 195
  • 267
Arch D. Robison
  • 3,829
  • 2
  • 16
  • 26

0 Answers0