diff options
author | Nandor Licker <n@ndor.email> | 2019-09-04 05:49:41 +0000 |
---|---|---|
committer | Nandor Licker <n@ndor.email> | 2019-09-04 05:49:41 +0000 |
commit | c0da99ee6c41d7ac4ed7919865dd17f71babb764 (patch) | |
tree | 1c740ef679431a247fc42cc675f5514a0f320531 /include/clang/Basic/LangOptions.def | |
parent | cb57fe36feaa1b01253a354795b728f503aac39c (diff) | |
download | clang-c0da99ee6c41d7ac4ed7919865dd17f71babb764.tar.gz |
[Clang Interpreter] Initial patch for the constexpr interpreter
Summary:
This patch introduces the skeleton of the constexpr interpreter,
capable of evaluating a simple constexpr functions consisting of
if statements. The interpreter is described in more detail in the
RFC. Further patches will add more features.
Reviewers: Bigcheese, jfb, rsmith
Subscribers: bruno, uenoku, ldionne, Tyker, thegameg, tschuett, dexonsmith, mgorny, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D64146
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@370839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.def')
-rw-r--r-- | include/clang/Basic/LangOptions.def | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.def b/include/clang/Basic/LangOptions.def index 31aca2b0d6..47f5daffd4 100644 --- a/include/clang/Basic/LangOptions.def +++ b/include/clang/Basic/LangOptions.def @@ -288,6 +288,10 @@ BENIGN_LANGOPT(ConstexprCallDepth, 32, 512, "maximum constexpr call depth") BENIGN_LANGOPT(ConstexprStepLimit, 32, 1048576, "maximum constexpr evaluation steps") +BENIGN_LANGOPT(EnableNewConstInterp, 1, 0, + "enable the experimental new constant interpreter") +BENIGN_LANGOPT(ForceNewConstInterp, 1, 0, + "force the use of the experimental new constant interpreter") BENIGN_LANGOPT(BracketDepth, 32, 256, "maximum bracket nesting depth") BENIGN_LANGOPT(NumLargeByValueCopy, 32, 0, |