Commit e1e013cf by Karl Schimpf

Refactor llvm2ice so that Ice can be built while reading bitcode.

BUG=None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/350933002
parent cc27a53a
...@@ -36,6 +36,7 @@ LDFLAGS := -m32 ...@@ -36,6 +36,7 @@ LDFLAGS := -m32
SRCS= \ SRCS= \
IceCfg.cpp \ IceCfg.cpp \
IceCfgNode.cpp \ IceCfgNode.cpp \
IceConverter.cpp \
IceGlobalContext.cpp \ IceGlobalContext.cpp \
IceInst.cpp \ IceInst.cpp \
IceInstX8632.cpp \ IceInstX8632.cpp \
......
//===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file declares the LLVM to ICE converter.
//
//===----------------------------------------------------------------------===//
#ifndef SUBZERO_SRC_ICECONVERTER_H
#define SUBZERO_SRC_ICECONVERTER_H
#include "IceGlobalContext.h"
namespace llvm {
class Module;
}
namespace Ice {
class Converter {
public:
Converter(Ice::GlobalContext *Ctx,
bool DisableInternal,
bool SubzeroTimingEnabled,
bool DisableTranslation)
: Ctx(Ctx),
DisableInternal(DisableInternal),
SubzeroTimingEnabled(SubzeroTimingEnabled),
DisableTranslation(DisableTranslation)
{}
/// Converts the LLVM Module to ICE. Returns exit status 0 if successful,
/// Nonzero otherwise.
int convertToIce(llvm::Module *Mod);
private:
Ice::GlobalContext *Ctx;
bool DisableInternal;
bool SubzeroTimingEnabled;
bool DisableTranslation;
};
}
#endif // SUBZERO_SRC_ICECONVERTER_H
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#define SUBZERO_SRC_ICEINTRINSICS_H #define SUBZERO_SRC_ICEINTRINSICS_H
#include "IceDefs.h" #include "IceDefs.h"
#include "IceTypes.h"
namespace Ice { namespace Ice {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment