Files
clang-p2996/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Quentin Colombet 105cf2b179 [GlobalISel] Add the proper cmake plumbing.
This patch adds the necessary plumbing to cmake to build the sources related to
GlobalISel.

To build the sources related to GlobalISel, we need to add -DBUILD_GLOBAL_ISEL=ON.
By default, this is OFF, thus GlobalISel sources will not impact people that do
not explicitly opt-in.

Differential Revision: http://reviews.llvm.org/D15983

llvm-svn: 258344
2016-01-20 20:58:56 +00:00

38 lines
912 B
C++

//===-- llvm/CodeGen/GlobalISel/IRTranslator.cpp - IRTranslator --*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
/// \file
/// This file implements the IRTranslator class.
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/GlobalISel/IRTranslator.h"
using namespace llvm;
char IRTranslator::ID = 0;
bool IRTranslator::translateADD(const Instruction &Inst) {
return false;
}
bool IRTranslator::translate(const Instruction &) {
return false;
}
void IRTranslator::finalize() {
}
IRTranslator::IRTranslator()
: MachineFunctionPass(ID) {
}
bool IRTranslator::runOnMachineFunction(MachineFunction &MF) {
return false;
}