X86InstrTDX.td 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===- X86InstrTDX.td - TDX Instruction Set Extension -*- tablegen -*===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This file describes the instructions that make up the Intel TDX instruction
  10. // set.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //===----------------------------------------------------------------------===//
  14. // TDX instructions
  15. // 64-bit only instructions
  16. let SchedRW = [WriteSystem], Predicates = [In64BitMode] in {
  17. // SEAMCALL - Call to SEAM VMX-root Operation Module
  18. def SEAMCALL : I<0x01, MRM_CF, (outs), (ins),
  19. "seamcall", []>, PD;
  20. // SEAMRET - Return to Legacy VMX-root Operation
  21. def SEAMRET : I<0x01, MRM_CD, (outs), (ins),
  22. "seamret", []>, PD;
  23. // SEAMOPS - SEAM Operations
  24. def SEAMOPS : I<0x01, MRM_CE, (outs), (ins),
  25. "seamops", []>, PD;
  26. } // SchedRW
  27. // common instructions
  28. let SchedRW = [WriteSystem] in {
  29. // TDCALL - Call SEAM Module Functions
  30. def TDCALL : I<0x01, MRM_CC, (outs), (ins),
  31. "tdcall", []>, PD;
  32. } // SchedRW