mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-10 04:24:23 +00:00
Correcting several sphinx errors; should fix the LLVM documentation build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
276a1497f1
commit
342bf77f71
@ -262,11 +262,12 @@ VOP_SDWA examples:
|
|||||||
For full list of supported instructions, refer to "Vector ALU instructions".
|
For full list of supported instructions, refer to "Vector ALU instructions".
|
||||||
|
|
||||||
Trap Handler ABI
|
Trap Handler ABI
|
||||||
--------------------------
|
----------------
|
||||||
The Trap Handler suppored is implemented differently based on the host OS. OS
|
The Trap Handler suppored is implemented differently based on the host OS. OS
|
||||||
is obtained from the appropriate element of the target triple HSA OS:
|
is obtained from the appropriate element of the target triple HSA OS:
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
enum TrapHandlerAbi {
|
enum TrapHandlerAbi {
|
||||||
TrapHandlerAbiNone = 0,
|
TrapHandlerAbiNone = 0,
|
||||||
TrapHandlerAbiHsa = 1
|
TrapHandlerAbiHsa = 1
|
||||||
@ -276,10 +277,11 @@ is obtained from the appropriate element of the target triple HSA OS:
|
|||||||
return isAmdHsaOS() ? TrapHandlerAbiHsa : TrapHandlerAbiNone;
|
return isAmdHsaOS() ? TrapHandlerAbiHsa : TrapHandlerAbiNone;
|
||||||
}
|
}
|
||||||
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
For HSA OS, a trap handler is always enabled and that the following S_TRAP immediate
|
For HSA OS, a trap handler is always enabled and that the following S_TRAP immediate
|
||||||
operand codes are supported:
|
operand codes are supported:
|
||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
enum TrapCode {
|
enum TrapCode {
|
||||||
TrapCodeBreakPoint = 0,
|
TrapCodeBreakPoint = 0,
|
||||||
TrapCodeLLVMTrap = 1,
|
TrapCodeLLVMTrap = 1,
|
||||||
@ -288,15 +290,15 @@ operand codes are supported:
|
|||||||
};
|
};
|
||||||
|
|
||||||
- 0: Used for debugger breakpoint. If debugger is not installed causes dispatch
|
- 0: Used for debugger breakpoint. If debugger is not installed causes dispatch
|
||||||
to be terminated and its associated queue put into the error state.
|
to be terminated and its associated queue put into the error state.
|
||||||
- 1: Used for llvm.trap..queue_ptr is in SGPR0-1. Causes dispatch to be
|
- 1: Used for llvm.trap..queue_ptr is in SGPR0-1. Causes dispatch to be
|
||||||
terminated and its associated queue put into the error state.
|
terminated and its associated queue put into the error state.
|
||||||
- 2: Used for llvm.debugtrap. queue_ptr is in SGPR0-1. If debugger not installed
|
- 2: Used for llvm.debugtrap. queue_ptr is in SGPR0-1. If debugger not installed
|
||||||
handled same as llvm.trap.
|
handled same as llvm.trap.
|
||||||
- 3: Used for HSA DEBUGTRAP. queue_ptr is in SGPR0-1, the user code is in VGPR0.
|
- 3: Used for HSA DEBUGTRAP. queue_ptr is in SGPR0-1, the user code is in VGPR0.
|
||||||
|
|
||||||
Graphics
|
Graphics
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^
|
||||||
For Graphics, S_ENDPGM is generated for llvm.trap. S_NOP is generated for
|
For Graphics, S_ENDPGM is generated for llvm.trap. S_NOP is generated for
|
||||||
llvm.debugtrap together with a warning that there is no trap handler installed.
|
llvm.debugtrap together with a warning that there is no trap handler installed.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user