aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 8b1ac2d..3971b29 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1851,6 +1851,15 @@ private:
// that feature and for a regular function (llvm::GlobalValue) otherwise.
llvm::Constant *GetOrCreateMultiVersionResolver(GlobalDecl GD);
+ // Set attributes to a resolver function generated by Clang.
+ // GD is either the cpu_dispatch declaration or an arbitrarily chosen
+ // function declaration that triggered the implicit generation of this
+ // resolver function.
+ //
+ /// NOTE: This should only be called for definitions.
+ void setMultiVersionResolverAttributes(llvm::Function *Resolver,
+ GlobalDecl GD);
+
// In scenarios where a function is not known to be a multiversion function
// until a later declaration, it is sometimes necessary to change the
// previously created mangled name to align with requirements of whatever