[PATCH] D27250: [OpenMP] TargetLibraryInfo from "declare simd".

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 30 04:30:53 PST 2016


fhahn added inline comments.


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6521
+emitX86DeclareSimdFunction(const FunctionDecl *FD,
+                            llvm::APSInt VLENVal,
+                            ArrayRef<ParamAttrTy> ParamAttrs,
----------------
Stray space


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6522
+                            llvm::APSInt VLENVal,
+                            ArrayRef<ParamAttrTy> ParamAttrs,
+                           OMPDeclareSimdDeclAttr::BranchStateTy State,
----------------
Stray space


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6615
+static void
+emitAArch64DeclareSimdFunction(CodeGenModule & CGM, const FunctionDecl *FD,
+                           const llvm::APSInt &UserVLEN,
----------------
Stray space in & CGM


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6662
+        auto MaskTy = getAArch64MaskTy(Data.ISA,
+                                       Data.VecRegSize/ VLEN.getExtValue(),
+                                       VLEN.getExtValue(), CGM.getLLVMContext());
----------------
Missing space around / in Data.VecRegSize/ VLEN.getExtValue()


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6676
+          Out << 'l';
+          if (!!ParamAttr.StrideOrArg)
+            Out << ParamAttr.StrideOrArg;
----------------
Is the !! intentional?


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6687
+
+        if (!!ParamAttr.Alignment)
+          Out << 'a' << ParamAttr.Alignment;
----------------
Is the !! intentional?


================
Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:6739
+  std::vector<std::string> OutVec;
+  std::string MangledName =  CGM.getMangledName(GlobalDecl(FD));
   for (auto *Attr : FD->specific_attrs<OMPDeclareSimdDeclAttr>()) {
----------------
Two spaces after =


https://reviews.llvm.org/D27250





More information about the cfe-commits mailing list