[X86] Add register definitions for cfi directives
authorAlex Brachet <abrachet@google.com>
Thu, 19 Jan 2023 14:10:31 +0000 (14:10 +0000)
committerAlex Brachet <abrachet@google.com>
Thu, 19 Jan 2023 14:10:31 +0000 (14:10 +0000)
commit67bd3c58c0c7389e39c5a2f4d3b1a30459ccf5b7
tree2f4aca5a31ae8d67d3a2aa66e88bb060e4bb9ada
parent77529ea4dee94ce8ae43221f21d737f8b75acbbb
[X86] Add register definitions for cfi directives

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.

Differential Revision: https://reviews.llvm.org/D141879
llvm/lib/Target/X86/X86RegisterInfo.td
llvm/test/CodeGen/X86/ipra-reg-usage.ll
llvm/test/MC/ELF/cfi-offset.s