Add {e,r}flags, {g,f}s.base registers so they can be referenced in cfi
directives,. They are not otherwise useable in any instructions,
but can be implicitly pushed to the stack like with pushf for
{e,r}flags.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/X86/X86RegisterInfo.td | ||
---|---|---|
315 | Should this use DwarfRegAlias? |
llvm/lib/Target/X86/X86RegisterInfo.td | ||
---|---|---|
315 | Sure should |
Comment Actions
IIUC, they can be used only under privileged mode. Is there a real case that compiler will emit these directives?
Comment Actions
Assembler syntax exists for humans who write assembly, not just for compilers.
Compilers do not emit CFI that refers to these registers.
Comment Actions
The lack of these registers is a regression in LLVM's assembler compared to the GNU assembler.
Comment Actions
You are right. Clang can compile assembly file and should be able to parse these directives too. LGTM, thanks!
Should this use DwarfRegAlias?