Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
If isUImm4() isn't used by the assembly parser then it's not missing is it?
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | ||
---|---|---|
579 | Why not use a template function? |
Comment Actions
Personally, I would just leave the raw case statements, but I don't really care that much either way.
Overall, LGTM.
BTW, I guess in C++ you can't do an alias specialization of a function template (e.g. using isUImm2 = IsUImm<2>;), which would avoid introducing those wrapper functions, right? I'm not really sure why that is (the equivalent thing in D just works, and the template model is similar), but I also am not sure I want to find out :)
Why not use a template function?