diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 03:08:38 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-19 03:08:38 +0800 |
| commit | c0f2700e0c7effc5da267bf501232ff4bfea63bc (patch) | |
| tree | b49a36959213dc3919a138981d8347ed22b9a31b /backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc | |
| parent | 0461d2ba6bf1aedbd0d39e5da4daf90137bf61a7 (diff) | |
| download | rcc-project-c0f2700e0c7effc5da267bf501232ff4bfea63bc.tar.gz rcc-project-c0f2700e0c7effc5da267bf501232ff4bfea63bc.tar.xz | |
[RISCV][GlobalISel] Generate trap selection
Diffstat (limited to 'backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc')
| -rw-r--r-- | backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc b/backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc index 21fd338..7f8b67c 100644 --- a/backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc +++ b/backend/lib/Target/RISCV/RISCVGISelControlFlow.rccdesc @@ -2,6 +2,22 @@ selection_rules: - + id: select_g_trap + priority: 100 + match: + opcode: G_TRAP + apply: + instructions: + - { opcode: UNIMP, root: true, operands: [] } + - + id: select_g_debugtrap + priority: 100 + match: + opcode: G_DEBUGTRAP + apply: + instructions: + - { opcode: EBREAK, root: true, operands: [] } + - id: select_g_brindirect priority: 100 match: |
