riscv / riscv-p-spec

RISC-V Packed SIMD Extension
https://jira.riscv.org/browse/RVG-129
Creative Commons Attribution 4.0 International
141 stars 38 forks source link

Builtin name #96

Open dodohack opened 3 years ago

dodohack commented 3 years ago

We use prefix __builtinriscv* to define builtins for RISC-V vector and other extensions in LLVM, can we keep consistancy to use the same prefix to define the same builtins for P extension?

See clang/include/clang/Basic/BuiltinsRISCV.def for detail.

shaochung commented 3 years ago

I think this is not a problem but only intrinsic function interfaces are defined in p spec. The spec does not specify compiler built-in style. This issue had been also discussed in riscv-non-isa/riscv-c-api-doc#19. I think you can discussed in LLVM to sync the builtin style.