1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Target/Nios2/Nios2FrameLowering.cpp
Nikolai Bozhenov 0ac8aa21f4 [Nios2] Subtarget, basic infrastructure for frame, instructions and registers
This is the second minimal patch keeping Nios2 target buildable.
I'm adding subtarget here and other stuff for frame lowering, instruction,
register information methods. I do not add any test cases, as still there
are missing parts like DAG selector and assembly printing. I plan to include
them into the next patch.

Patch by Andrei Grischenko <andrei.l.grischenko@intel.com>

Differential Revision: https://reviews.llvm.org/D37256

llvm-svn: 313626
2017-09-19 11:54:29 +00:00

32 lines
1.1 KiB
C++

//===-- Nios2FrameLowering.cpp - Nios2 Frame Information ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the Nios2 implementation of TargetFrameLowering class.
//
//===----------------------------------------------------------------------===//
#include "Nios2FrameLowering.h"
#include "Nios2Subtarget.h"
#include "llvm/CodeGen/MachineFunction.h"
using namespace llvm;
bool Nios2FrameLowering::hasFP(const MachineFunction &MF) const { return true; }
void Nios2FrameLowering::emitPrologue(MachineFunction &MF,
MachineBasicBlock &MBB) const {}
void Nios2FrameLowering::emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const {}
const Nios2FrameLowering *Nios2FrameLowering::create(const Nios2Subtarget &ST) {
return new Nios2FrameLowering(ST, 4);
}