summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2019-12-06 15:42:14 -0800
committerReid Kleckner <rnk@google.com>2019-12-06 15:42:14 -0800
commiteff08f40976e177923fe95759917e59375458f71 (patch)
tree028c8cec655334a91c3cdd3c4ec91187ece2dbba /clang/lib/CodeGen/CodeGenModule.h
parentb22d8ae7f436bfe63b28ceddea743071a6601eb1 (diff)
downloadbcm5719-llvm-eff08f40976e177923fe95759917e59375458f71.tar.gz
bcm5719-llvm-eff08f40976e177923fe95759917e59375458f71.zip
Revert "[Sema][X86] Consider target attribute into the checks in validateOutputSize and validateInputSize."
This reverts commit e1578fd2b79fe5af5f80c0c166a8abd0f816c022. It introduces a dependency on Attr.h which I am removing from ASTContext.h.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 70d4e5f9a95..33d419a0290 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1150,6 +1150,14 @@ 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