[PATCH] D29933: [RISCV 11/n] Initial codegen support for ALU operations
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 6 17:32:15 PDT 2017
mgrang added inline comments.
================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:45
+
+ // Compute derived properties from the register classes
+ computeRegisterProperties(STI.getRegisterInfo());
----------------
Period at end of comment.
================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:66
+ SelectionDAG &DAG) const {
+ switch (Op.getOpcode()) {
+ default:
----------------
This currently will always report error. I guess you intend to add more cases in future?
================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:72
+
+// Calling Convention Implementation
+#include "RISCVGenCallingConv.inc"
----------------
Period at end of comment.
================
Comment at: lib/Target/RISCV/RISCVISelLowering.cpp:91
+
+ if (IsVarArg) {
+ report_fatal_error("VarArg not supported");
----------------
I think it would be better to omit the braces in case there is a single statement inside if. Would make code more compact, no?
I had the same observation about your other RISCV patches.
https://reviews.llvm.org/D29933
More information about the llvm-commits
mailing list