Add constraint 'v' in LLVM IR for vector registers and 'vr' and 'vm' for
C/C++ inline asm constraints.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/docs/LangRef.rst | ||
---|---|---|
4782 | I thought we only support vr and vm, but v only is not supported? |
llvm/docs/LangRef.rst | ||
---|---|---|
4782 | In LLVM IR, it still keeps to only use 'v'. The document is IR document. That's why I describe 'v' here. In Clang, it will convert 'vr' and 'vm' to 'v' in LLVM IR. You could see the convertConstraint in https://reviews.llvm.org/D98616. |
llvm/docs/LangRef.rst | ||
---|---|---|
4782 | Description at the begin of this chapter ` The constraint codes are, in general, expected to behave the same way they do in GCC. LLVM’s support is often implemented on an ‘as-needed’ basis, to support C inline asm code which was supported by GCC. A mismatch in behavior between LLVM and GCC likely indicates a bug in LLVM. I would suggest remove v, it's impossible to implement v and vr/vm on GCC site. |
I thought we only support vr and vm, but v only is not supported?