diff options
author | Zahira Ammarguellat <Zahira.Ammarguellat@intel.com> | 2023-05-31 15:38:20 -0400 |
---|---|---|
committer | Zahira Ammarguellat <Zahira.Ammarguellat@intel.com> | 2023-09-08 09:48:53 -0400 |
commit | 2c93e3c1c8ba70694bc0d3fd71ac90836a147f2d (patch) | |
tree | b421a22c87343efdb3979efedb83e22f7b26fd27 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 77054f3946161ea43b67a623f33d4647e5c850fc (diff) | |
download | llvm-2c93e3c1c8ba70694bc0d3fd71ac90836a147f2d.zip llvm-2c93e3c1c8ba70694bc0d3fd71ac90836a147f2d.tar.gz llvm-2c93e3c1c8ba70694bc0d3fd71ac90836a147f2d.tar.bz2 |
Take math-errno into account with '#pragma float_control(precise,on)' and
'attribute__((optnone)).
Differential Revision: https://reviews.llvm.org/D151834
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 79f48b6..073b471 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1260,6 +1260,12 @@ public: llvm::AttributeList &Attrs, unsigned &CallingConv, bool AttrOnCallSite, bool IsThunk); + /// Adjust Memory attribute to ensure that the BE gets the right attribute + // in order to generate the library call or the intrinsic for the function + // name 'Name'. + void AdjustMemoryAttribute(StringRef Name, CGCalleeInfo CalleeInfo, + llvm::AttributeList &Attrs); + /// Like the overload taking a `Function &`, but intended specifically /// for frontends that want to build on Clang's target-configuration logic. void addDefaultFunctionDefinitionAttributes(llvm::AttrBuilder &attrs); |