[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
//===--- EvalEmitter.cpp - Instruction emitter for the VM -------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "EvalEmitter.h"
|
|
|
|
#include "Context.h"
|
2023-09-30 20:12:59 +02:00
|
|
|
#include "IntegralAP.h"
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
#include "Interp.h"
|
|
|
|
#include "Opcode.h"
|
|
|
|
#include "clang/AST/DeclCXX.h"
|
|
|
|
|
|
|
|
using namespace clang;
|
|
|
|
using namespace clang::interp;
|
|
|
|
|
|
|
|
EvalEmitter::EvalEmitter(Context &Ctx, Program &P, State &Parent,
|
2024-03-01 15:27:39 +01:00
|
|
|
InterpStack &Stk)
|
2024-01-19 10:08:03 +01:00
|
|
|
: Ctx(Ctx), P(P), S(Parent, P, Stk, Ctx, this), EvalResult(&Ctx) {
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
// Create a dummy frame for the interpreter which does not have locals.
|
2022-12-26 09:29:04 +01:00
|
|
|
S.Current =
|
2024-02-14 15:29:47 +01:00
|
|
|
new InterpFrame(S, /*Func=*/nullptr, /*Caller=*/nullptr, CodePtr(), 0);
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
2023-10-24 06:49:11 +02:00
|
|
|
EvalEmitter::~EvalEmitter() {
|
|
|
|
for (auto &[K, V] : Locals) {
|
|
|
|
Block *B = reinterpret_cast<Block *>(V.get());
|
|
|
|
if (B->isInitialized())
|
|
|
|
B->invokeDtor();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-05 13:56:23 +02:00
|
|
|
/// Clean up all our resources. This needs to done in failed evaluations before
|
|
|
|
/// we call InterpStack::clear(), because there might be a Pointer on the stack
|
|
|
|
/// pointing into a Block in the EvalEmitter.
|
|
|
|
void EvalEmitter::cleanup() { S.cleanup(); }
|
|
|
|
|
2024-02-15 15:13:12 +01:00
|
|
|
EvaluationResult EvalEmitter::interpretExpr(const Expr *E,
|
|
|
|
bool ConvertResultToRValue) {
|
2024-05-02 14:04:38 +02:00
|
|
|
S.setEvalLocation(E->getExprLoc());
|
2024-06-08 11:18:33 +02:00
|
|
|
this->ConvertResultToRValue = ConvertResultToRValue && !isa<ConstantExpr>(E);
|
2024-06-07 12:59:28 +02:00
|
|
|
this->CheckFullyInitialized = isa<ConstantExpr>(E);
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setSource(E);
|
|
|
|
|
2024-02-28 07:38:22 +01:00
|
|
|
if (!this->visitExpr(E)) {
|
|
|
|
// EvalResult may already have a result set, but something failed
|
|
|
|
// after that (e.g. evaluating destructors).
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setInvalid();
|
2024-02-28 07:38:22 +01:00
|
|
|
}
|
2024-01-19 10:08:03 +01:00
|
|
|
|
|
|
|
return std::move(this->EvalResult);
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
2024-02-16 11:40:12 +01:00
|
|
|
EvaluationResult EvalEmitter::interpretDecl(const VarDecl *VD,
|
|
|
|
bool CheckFullyInitialized) {
|
|
|
|
this->CheckFullyInitialized = CheckFullyInitialized;
|
2024-06-27 15:10:53 +02:00
|
|
|
S.EvaluatingDecl = VD;
|
2024-06-08 11:18:33 +02:00
|
|
|
|
|
|
|
if (const Expr *Init = VD->getAnyInitializer()) {
|
|
|
|
QualType T = VD->getType();
|
|
|
|
this->ConvertResultToRValue = !Init->isGLValue() && !T->isPointerType() &&
|
|
|
|
!T->isObjCObjectPointerType();
|
|
|
|
} else
|
|
|
|
this->ConvertResultToRValue = false;
|
|
|
|
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setSource(VD);
|
|
|
|
|
2024-06-17 15:18:28 +02:00
|
|
|
if (!this->visitDecl(VD, S.inConstantContext()) && EvalResult.empty())
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setInvalid();
|
|
|
|
|
2024-06-27 15:10:53 +02:00
|
|
|
S.EvaluatingDecl = nullptr;
|
2024-06-28 13:23:51 +02:00
|
|
|
updateGlobalTemporaries();
|
2024-01-19 10:08:03 +01:00
|
|
|
return std::move(this->EvalResult);
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void EvalEmitter::emitLabel(LabelTy Label) {
|
|
|
|
CurrentLabel = Label;
|
|
|
|
}
|
|
|
|
|
|
|
|
EvalEmitter::LabelTy EvalEmitter::getLabel() { return NextLabel++; }
|
|
|
|
|
|
|
|
Scope::Local EvalEmitter::createLocal(Descriptor *D) {
|
|
|
|
// Allocate memory for a local.
|
|
|
|
auto Memory = std::make_unique<char[]>(sizeof(Block) + D->getAllocSize());
|
2024-06-29 08:10:38 +02:00
|
|
|
auto *B = new (Memory.get()) Block(Ctx.getEvalID(), D, /*isStatic=*/false);
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
B->invokeCtor();
|
|
|
|
|
2022-12-26 09:29:04 +01:00
|
|
|
// Initialize local variable inline descriptor.
|
|
|
|
InlineDescriptor &Desc = *reinterpret_cast<InlineDescriptor *>(B->rawData());
|
|
|
|
Desc.Desc = D;
|
|
|
|
Desc.Offset = sizeof(InlineDescriptor);
|
|
|
|
Desc.IsActive = true;
|
2023-01-20 09:09:55 +01:00
|
|
|
Desc.IsBase = false;
|
2023-01-01 13:22:59 +01:00
|
|
|
Desc.IsFieldMutable = false;
|
2023-01-20 09:09:55 +01:00
|
|
|
Desc.IsConst = false;
|
|
|
|
Desc.IsInitialized = false;
|
2022-12-26 09:29:04 +01:00
|
|
|
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
// Register the local.
|
|
|
|
unsigned Off = Locals.size();
|
|
|
|
Locals.insert({Off, std::move(Memory)});
|
|
|
|
return {Off, D};
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::jumpTrue(const LabelTy &Label) {
|
|
|
|
if (isActive()) {
|
|
|
|
if (S.Stk.pop<bool>())
|
|
|
|
ActiveLabel = Label;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::jumpFalse(const LabelTy &Label) {
|
|
|
|
if (isActive()) {
|
|
|
|
if (!S.Stk.pop<bool>())
|
|
|
|
ActiveLabel = Label;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::jump(const LabelTy &Label) {
|
|
|
|
if (isActive())
|
|
|
|
CurrentLabel = ActiveLabel = Label;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::fallthrough(const LabelTy &Label) {
|
|
|
|
if (isActive())
|
|
|
|
ActiveLabel = Label;
|
|
|
|
CurrentLabel = Label;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <PrimType OpType> bool EvalEmitter::emitRet(const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
|
|
|
using T = typename PrimConv<OpType>::T;
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setValue(S.Stk.pop<T>().toAPValue());
|
|
|
|
return true;
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
2024-01-19 10:08:03 +01:00
|
|
|
template <> bool EvalEmitter::emitRet<PT_Ptr>(const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
2024-02-15 15:13:12 +01:00
|
|
|
|
|
|
|
const Pointer &Ptr = S.Stk.pop<Pointer>();
|
2024-06-08 11:18:33 +02:00
|
|
|
|
|
|
|
if (CheckFullyInitialized && !EvalResult.checkFullyInitialized(S, Ptr))
|
|
|
|
return false;
|
|
|
|
|
2024-02-15 15:13:12 +01:00
|
|
|
// Implicitly convert lvalue to rvalue, if requested.
|
|
|
|
if (ConvertResultToRValue) {
|
|
|
|
if (std::optional<APValue> V = Ptr.toRValue(Ctx)) {
|
|
|
|
EvalResult.setValue(*V);
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
} else {
|
2024-06-08 11:18:33 +02:00
|
|
|
EvalResult.setValue(Ptr.toAPValue());
|
2024-02-15 15:13:12 +01:00
|
|
|
}
|
|
|
|
|
2024-01-19 10:08:03 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
template <> bool EvalEmitter::emitRet<PT_FnPtr>(const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
2024-02-15 15:13:12 +01:00
|
|
|
// Function pointers cannot be converted to rvalues.
|
2024-01-19 10:08:03 +01:00
|
|
|
EvalResult.setFunctionPointer(S.Stk.pop<FunctionPointer>());
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::emitRetVoid(const SourceInfo &Info) {
|
|
|
|
EvalResult.setValid();
|
|
|
|
return true;
|
|
|
|
}
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
|
|
|
|
bool EvalEmitter::emitRetValue(const SourceInfo &Info) {
|
|
|
|
const auto &Ptr = S.Stk.pop<Pointer>();
|
2024-06-07 12:59:28 +02:00
|
|
|
|
|
|
|
if (CheckFullyInitialized && !EvalResult.checkFullyInitialized(S, Ptr))
|
|
|
|
return false;
|
|
|
|
|
2024-01-19 10:08:03 +01:00
|
|
|
if (std::optional<APValue> APV = Ptr.toRValue(S.getCtx())) {
|
|
|
|
EvalResult.setValue(*APV);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
EvalResult.setInvalid();
|
|
|
|
return false;
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::emitGetPtrLocal(uint32_t I, const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
|
|
|
|
2022-12-26 11:49:58 +01:00
|
|
|
Block *B = getLocal(I);
|
2022-12-26 09:29:04 +01:00
|
|
|
S.Stk.push<Pointer>(B, sizeof(InlineDescriptor));
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <PrimType OpType>
|
|
|
|
bool EvalEmitter::emitGetLocal(uint32_t I, const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
|
|
|
|
|
|
|
using T = typename PrimConv<OpType>::T;
|
|
|
|
|
2022-12-26 11:49:58 +01:00
|
|
|
Block *B = getLocal(I);
|
2022-12-26 09:29:04 +01:00
|
|
|
S.Stk.push<T>(*reinterpret_cast<T *>(B->data()));
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <PrimType OpType>
|
|
|
|
bool EvalEmitter::emitSetLocal(uint32_t I, const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
|
|
|
|
|
|
|
using T = typename PrimConv<OpType>::T;
|
|
|
|
|
2022-12-26 11:49:58 +01:00
|
|
|
Block *B = getLocal(I);
|
2022-12-26 09:29:04 +01:00
|
|
|
*reinterpret_cast<T *>(B->data()) = S.Stk.pop<T>();
|
|
|
|
InlineDescriptor &Desc = *reinterpret_cast<InlineDescriptor *>(B->rawData());
|
|
|
|
Desc.IsInitialized = true;
|
|
|
|
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool EvalEmitter::emitDestroy(uint32_t I, const SourceInfo &Info) {
|
|
|
|
if (!isActive())
|
|
|
|
return true;
|
|
|
|
|
|
|
|
for (auto &Local : Descriptors[I]) {
|
2022-12-26 11:49:58 +01:00
|
|
|
Block *B = getLocal(Local.Offset);
|
|
|
|
S.deallocate(B);
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2024-06-28 13:23:51 +02:00
|
|
|
/// Global temporaries (LifetimeExtendedTemporary) carry their value
|
|
|
|
/// around as an APValue, which codegen accesses.
|
|
|
|
/// We set their value once when creating them, but we don't update it
|
|
|
|
/// afterwards when code changes it later.
|
|
|
|
/// This is what we do here.
|
|
|
|
void EvalEmitter::updateGlobalTemporaries() {
|
|
|
|
for (const auto &[E, Temp] : S.SeenGlobalTemporaries) {
|
|
|
|
if (std::optional<unsigned> GlobalIndex = P.getGlobal(E)) {
|
|
|
|
const Pointer &Ptr = P.getPtrGlobal(*GlobalIndex);
|
|
|
|
APValue *Cached = Temp->getOrCreateValue(true);
|
|
|
|
|
|
|
|
if (std::optional<PrimType> T = Ctx.classify(E->getType())) {
|
|
|
|
TYPE_SWITCH(*T, { *Cached = Ptr.deref<T>().toAPValue(); });
|
|
|
|
} else {
|
|
|
|
if (std::optional<APValue> APV = Ptr.toRValue(Ctx))
|
|
|
|
*Cached = *APV;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
S.SeenGlobalTemporaries.clear();
|
|
|
|
}
|
|
|
|
|
[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
llvm-svn: 371834
2019-09-13 09:46:16 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Opcode evaluators
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#define GET_EVAL_IMPL
|
|
|
|
#include "Opcodes.inc"
|
|
|
|
#undef GET_EVAL_IMPL
|