diff options
author | Tyker <tyker1@outlook.com> | 2020-06-14 14:39:14 +0200 |
---|---|---|
committer | Tyker <tyker1@outlook.com> | 2020-06-15 10:47:14 +0200 |
commit | 3bab88b7baa20b276faaee0aa7ca87f636c91877 (patch) | |
tree | d197c4e72b806512b356aa56a2c36b63e2e36482 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 7808bf843174017b5e147870f7f901a7ea7a0732 (diff) | |
download | llvm-3bab88b7baa20b276faaee0aa7ca87f636c91877.zip llvm-3bab88b7baa20b276faaee0aa7ca87f636c91877.tar.gz llvm-3bab88b7baa20b276faaee0aa7ca87f636c91877.tar.bz2 |
Prevent IR-gen from emitting consteval declarations
Summary: with this patch instead of emitting calls to consteval function. the IR-gen will emit a store of the already computed result.
Reviewers: rsmith
Reviewed By: rsmith
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D76420
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 5dbaf2e..273aa1c 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -4138,6 +4138,10 @@ public: /// aggregate type into a temporary LValue. LValue EmitAggExprToLValue(const Expr *E); + /// Build all the stores needed to initialize an aggregate at Dest with the + /// value Val. + void EmitAggregateStore(llvm::Value *Val, Address Dest, bool DestIsVolatile); + /// EmitExtendGCLifetime - Given a pointer to an Objective-C object, /// make sure it survives garbage collection until this point. void EmitExtendGCLifetime(llvm::Value *object); |