MaskRay added inline comments.

================
Comment at: clang/lib/Driver/ToolChains/Linux.cpp:480
+    LibDir = std::string(getOSLibDir(Triple, Args));
+    StringRef ABIName = tools::loongarch::getLoongArchABI(Args, Triple);
+    Loader = ("ld-linux-loongarch-" + ABIName + ".so.1").str();
----------------
avoid simple variable which is only used once


================
Comment at: clang/test/Driver/loongarch64-toolchain.c:4
+
+// RUN: %clang %s -### -no-canonical-prefixes -target loongarch64 2>&1 | 
FileCheck -check-prefix=CC1 %s
+// CC1: clang{{.*}} "-cc1" "-triple" "loongarch64"
----------------
Just remove `-no-canonical-prefixes` and `clang{{.*}}` below. `"-cc1"` is 
sufficient to anchor a cc1 line.


================
Comment at: clang/test/Preprocessor/init-loongarch.c:21
+// LA32: #define __ATOMIC_ACQUIRE 2
+// LA32: #define __ATOMIC_ACQ_REL 4
+// LA32: #define __ATOMIC_CONSUME 1
----------------
Consider using `-NEXT` for related values


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130255/new/

https://reviews.llvm.org/D130255

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to