2004-06-21 18:55:25 +02:00
|
|
|
##===- lib/Target/PowerPC/Makefile -------------------------*- Makefile -*-===##
|
2009-01-09 17:44:42 +01:00
|
|
|
#
|
2004-06-21 18:55:25 +02:00
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
2007-12-29 21:09:26 +01:00
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
2009-01-09 17:44:42 +01:00
|
|
|
#
|
2004-06-21 18:55:25 +02:00
|
|
|
##===----------------------------------------------------------------------===##
|
2010-01-22 07:49:46 +01:00
|
|
|
|
2004-06-21 18:55:25 +02:00
|
|
|
LEVEL = ../../..
|
2008-08-17 15:54:44 +02:00
|
|
|
LIBRARYNAME = LLVMPowerPCCodeGen
|
2005-10-15 01:37:35 +02:00
|
|
|
TARGET = PPC
|
2004-08-05 20:34:15 +02:00
|
|
|
|
2004-06-21 18:55:25 +02:00
|
|
|
# Make sure that tblgen is run, first thing.
|
2005-10-15 01:37:35 +02:00
|
|
|
BUILT_SOURCES = PPCGenInstrNames.inc PPCGenRegisterNames.inc \
|
|
|
|
PPCGenAsmWriter.inc PPCGenCodeEmitter.inc \
|
|
|
|
PPCGenRegisterInfo.h.inc PPCGenRegisterInfo.inc \
|
2007-03-06 01:59:59 +01:00
|
|
|
PPCGenInstrInfo.inc PPCGenDAGISel.inc \
|
Implement a basic MCCodeEmitter for PPC. This doesn't handle
fixups yet, and doesn't handle actually encoding operand values,
but this is enough for llc -show-mc-encoding to show the base
instruction encoding information, e.g.:
mflr r0 ; encoding: [0x7c,0x08,0x02,0xa6]
stw r0, 8(r1) ; encoding: [0x90,0x00,0x00,0x00]
stwu r1, -64(r1) ; encoding: [0x94,0x00,0x00,0x00]
Ltmp0:
lhz r4, 4(r3) ; encoding: [0xa0,0x00,0x00,0x00]
cmplwi cr0, r4, 8 ; encoding: [0x28,0x00,0x00,0x00]
beq cr0, LBB0_2 ; encoding: [0x40,0x00,0x00,0x00]
llvm-svn: 119116
2010-11-15 05:16:32 +01:00
|
|
|
PPCGenSubtarget.inc PPCGenCallingConv.inc \
|
|
|
|
PPCGenMCCodeEmitter.inc
|
2004-06-21 18:55:25 +02:00
|
|
|
|
2010-11-14 20:40:38 +01:00
|
|
|
DIRS = InstPrinter TargetInfo
|
2008-08-17 15:54:28 +02:00
|
|
|
|
2004-10-22 23:02:08 +02:00
|
|
|
include $(LEVEL)/Makefile.common
|