1 //===-- X86InstrSGX.td - SGX Instruction Set Extension -----*- tablegen -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file describes the instructions that make up the Intel SGX instruction
12 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
17 let SchedRW = [WriteSystem], Predicates = [HasSGX] in {
18 // ENCLS - Execute an Enclave System Function of Specified Leaf Number
19 def ENCLS : I<0x01, MRM_CF, (outs), (ins),
22 // ENCLU - Execute an Enclave User Function of Specified Leaf Number
23 def ENCLU : I<0x01, MRM_D7, (outs), (ins),
26 // ENCLV - Execute an Enclave VMM Function of Specified Leaf Number
27 def ENCLV : I<0x01, MRM_C0, (outs), (ins),