Skip to content

Add generator for capstone #1146

@cmd05

Description

@cmd05

Is your feature request related to a problem? Please describe.
Add a generator for RISC-V dependency files used in the Capstone project. These dependency files are human written and can benefit from being generated by UDB.

Describe the solution you'd like
The following files are candidates for being automatically generated:

  • include/capstone/riscv.h
  • The following switch case in RISCVInstPrinter.c. However, the following CSRs are missing in UDB to be completely generated:
    ustatus, uie, utvec, uscratch, uepc, ucause, utval, uip, sedeleg, sideleg, sie, dscratch
  • RISCVMappingInsn.inc, RISCVMappingInsnOp.inc - Instruction definition tables

These files are currently being generated using TableGen by LLVM, but can be generated through UDB as well:

  • arch/RISCV/RISCVGenAsmWriter.inc
  • arch/RISCV/RISCVGenDisassemblerTables.inc
  • arch/RISCV/RISCVGenInsnNameMaps.inc

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgeneratorsRelated to backend/generator

    Type

    No type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions