Kevin Enderby | 0d928a1 | 2014-07-31 23:57:38 +0000 | [diff] [blame] | 1 | //===-- X86InstrSGX.td - SGX Instruction Set Extension -----*- tablegen -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file describes the instructions that make up the Intel SGX instruction |
| 11 | // set. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | //===----------------------------------------------------------------------===// |
| 16 | // SGX instructions |
| 17 | |
Gabor Buella | 4a02bf9 | 2018-05-08 07:11:05 +0000 | [diff] [blame] | 18 | let SchedRW = [WriteSystem], Predicates = [HasSGX] in { |
Kevin Enderby | 0d928a1 | 2014-07-31 23:57:38 +0000 | [diff] [blame] | 19 | // ENCLS - Execute an Enclave System Function of Specified Leaf Number |
| 20 | def ENCLS : I<0x01, MRM_CF, (outs), (ins), |
Craig Topper | a898c2d | 2015-02-05 08:51:02 +0000 | [diff] [blame] | 21 | "encls", []>, TB; |
Kevin Enderby | 0d928a1 | 2014-07-31 23:57:38 +0000 | [diff] [blame] | 22 | |
| 23 | // ENCLU - Execute an Enclave User Function of Specified Leaf Number |
| 24 | def ENCLU : I<0x01, MRM_D7, (outs), (ins), |
Craig Topper | a898c2d | 2015-02-05 08:51:02 +0000 | [diff] [blame] | 25 | "enclu", []>, TB; |
Gabor Buella | 4a02bf9 | 2018-05-08 07:11:05 +0000 | [diff] [blame] | 26 | |
| 27 | // ENCLV - Execute an Enclave VMM Function of Specified Leaf Number |
| 28 | def ENCLV : I<0x01, MRM_C0, (outs), (ins), |
| 29 | "enclv", []>, TB; |
Simon Pilgrim | 2db2851 | 2017-12-08 19:26:22 +0000 | [diff] [blame] | 30 | } // SchedRW |