Skip to content

Is there any generic cpu model support for RVV?Or how to add a cpu model for RISCV? #88851

@dinyy

Description

@dinyy

While I‘m tryring OpenCL(PoCL) on RISC-V,it call llvm to generate it's kernel. I want to use -march=rv64gcv, but it occurs that I need -mcpu when I use opt. I need a cpu model which support RVV.
Now I change the code in llvm-project/llvm/lib/Target/RISCV/RISCVProcessors.td that :
image
but I don't find other place to change,I saw that page,but code has been changed so much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:RISC-VquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions