[all-commits] [llvm/llvm-project] e1578f: [Sema][X86] Consider target attribute into the che...
topperc via All-commits
all-commits at lists.llvm.org
Fri Dec 6 15:31:23 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e1578fd2b79fe5af5f80c0c166a8abd0f816c022
https://github.com/llvm/llvm-project/commit/e1578fd2b79fe5af5f80c0c166a8abd0f816c022
Author: Craig Topper <craig.topper at intel.com>
Date: 2019-12-06 (Fri, 06 Dec 2019)
Changed paths:
M clang/include/clang/AST/ASTContext.h
M clang/include/clang/Basic/TargetInfo.h
M clang/lib/AST/ASTContext.cpp
M clang/lib/Basic/Targets/X86.cpp
M clang/lib/Basic/Targets/X86.h
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/CodeGen/CodeGenModule.h
M clang/lib/Sema/SemaStmtAsm.cpp
M clang/test/CodeGen/x86_32-inline-asm.c
Log Message:
-----------
[Sema][X86] Consider target attribute into the checks in validateOutputSize and validateInputSize.
The validateOutputSize and validateInputSize need to check whether
AVX or AVX512 are enabled. But this can be affected by the
target attribute so we need to factor that in.
This patch copies some of the code from CodeGen to create an
appropriate feature map that we can pass to the function. Probably
need some refactoring here to share more code with Codegen. Is
there a good place to do that? Also need to support the cpu_specific
attribute as well.
Differential Revision: https://reviews.llvm.org/D68627
More information about the All-commits
mailing list