[PATCH] D68627: [Sema][X86] Consider target attribute into the checks in validateOutputSize and validateInputSize.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 09:24:13 PDT 2019


erichkeane added inline comments.


================
Comment at: clang/include/clang/Basic/TargetInfo.h:947
 
-  virtual bool validateOutputSize(StringRef /*Constraint*/,
+  virtual bool validateOutputSize(const llvm::StringMap<bool> &FeatureMap,
+                                  StringRef /*Constraint*/,
----------------
Other Parameter names are commented out (presumably to avoid an unused param warning?).  Do we need to do that for this parameter as well?


================
Comment at: clang/lib/Sema/SemaStmtAsm.cpp:240
 
+void getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap,
+                           DiagnosticsEngine &Diags,
----------------
First, this ought to be static.  Second, since this is basically identical to what we do for CodeGen, I wonder if this needs to just be a member of Sema/ASTContext or something.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68627





More information about the cfe-commits mailing list