[PATCH] D64146: [ConstExprPreter] Initial patch for the constexpr interpreter

Nandor Licker via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 10:32:06 PDT 2019


nand created this revision.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64146

Files:
  clang/include/clang/AST/ASTContext.h
  clang/include/clang/Basic/DiagnosticASTKinds.td
  clang/include/clang/Basic/LangOptions.def
  clang/include/clang/Basic/OptionalDiagnostic.h
  clang/include/clang/Driver/Options.td
  clang/lib/AST/ASTContext.cpp
  clang/lib/AST/CMakeLists.txt
  clang/lib/AST/ExprConstant.cpp
  clang/lib/AST/ExprVM/CMakeLists.txt
  clang/lib/AST/ExprVM/Compiler.cpp
  clang/lib/AST/ExprVM/Compiler.h
  clang/lib/AST/ExprVM/Context.cpp
  clang/lib/AST/ExprVM/Context.h
  clang/lib/AST/ExprVM/Disasm.cpp
  clang/lib/AST/ExprVM/Frame.cpp
  clang/lib/AST/ExprVM/Frame.h
  clang/lib/AST/ExprVM/Function.cpp
  clang/lib/AST/ExprVM/Function.h
  clang/lib/AST/ExprVM/Interp.cpp
  clang/lib/AST/ExprVM/Interp.h
  clang/lib/AST/ExprVM/InterpFrame.cpp
  clang/lib/AST/ExprVM/InterpFrame.h
  clang/lib/AST/ExprVM/InterpStack.cpp
  clang/lib/AST/ExprVM/InterpStack.h
  clang/lib/AST/ExprVM/Opcode.h
  clang/lib/AST/ExprVM/Opcodes.inc
  clang/lib/AST/ExprVM/Pointer.cpp
  clang/lib/AST/ExprVM/Pointer.h
  clang/lib/AST/ExprVM/Program.cpp
  clang/lib/AST/ExprVM/Program.h
  clang/lib/AST/ExprVM/State.cpp
  clang/lib/AST/ExprVM/State.h
  clang/lib/AST/ExprVM/Type.cpp
  clang/lib/AST/ExprVM/Type.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/ExprVM/cond.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64146.207834.patch
Type: text/x-patch
Size: 138431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190703/a9c0defb/attachment-0001.bin>


More information about the cfe-commits mailing list