summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-12-06 15:08:32 -0800
committerCraig Topper <craig.topper@intel.com>2019-12-06 15:30:59 -0800
commite1578fd2b79fe5af5f80c0c166a8abd0f816c022 (patch)
tree3c574452f50c324277fbd0ebad71b5c2cfbcc3ae /clang/lib/CodeGen/CodeGenModule.h
parent60573ae6fe509b618dc6a2c5c55d921bccd77608 (diff)
downloadbcm5719-llvm-e1578fd2b79fe5af5f80c0c166a8abd0f816c022.tar.gz
bcm5719-llvm-e1578fd2b79fe5af5f80c0c166a8abd0f816c022.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 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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 33d419a0290..70d4e5f9a95 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1150,14 +1150,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.
- TargetAttr::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);
OpenPOWER on IntegriCloud