diff options
author | Craig Topper <craig.topper@intel.com> | 2019-12-23 10:38:38 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-12-23 11:23:30 -0800 |
commit | d35bcbbb5dab0e29b21a586505f5b274377cc41b (patch) | |
tree | b399b117ee4e29e3cc28cd3277a64c4d92a6481b /clang/lib/CodeGen/CodeGenModule.h | |
parent | e028cee66a23da568ba62c6323c6a29f4c7f63ae (diff) | |
download | bcm5719-llvm-d35bcbbb5dab0e29b21a586505f5b274377cc41b.tar.gz bcm5719-llvm-d35bcbbb5dab0e29b21a586505f5b274377cc41b.zip |
[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 moves some of the code from CodeGen to create an
appropriate feature map that we can pass to the function.
Differential Revision: https://reviews.llvm.org/D68627
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 9bf1c5ef610..115e754bb39 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1157,14 +1157,6 @@ public: /// It's up to you to ensure that this is safe. void AddDefaultFnAttrs(llvm::Function &F); - /// Parses the target attributes passed in, and returns only the ones that are - /// valid feature names. - ParsedTargetAttr filterFunctionTargetAttrs(const TargetAttr *TD); - - // Fills in the supplied string map with the set of target features for the - // passed in function. - void getFunctionFeatureMap(llvm::StringMap<bool> &FeatureMap, GlobalDecl GD); - StringRef getMangledName(GlobalDecl GD); StringRef getBlockMangledName(GlobalDecl GD, const BlockDecl *BD); |