aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-07-16 19:32:12 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-07-16 19:32:12 +0000
commit6f14ad1ca0647d0111605f2ac78e0a0756be6fd7 (patch)
treeb98482b65d9b9a219ef8956eb133afb79e33f5be /lib/Target/PowerPC/PPCTargetMachine.cpp
parent29188c6ff653aa69fac958077b62a06013be98f9 (diff)
Define double alignment as 8 bytes now that assert(DoubleAlignment == PointerSize)
has been eliminated git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index 25c7fc0959..66f9c02d05 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -19,6 +19,7 @@
#include "llvm/CodeGen/Passes.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetMachineRegistry.h"
+#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/Scalar.h"
#include <iostream>
using namespace llvm;
@@ -50,11 +51,9 @@ unsigned PowerPCTargetMachine::getModuleMatchQuality(const Module &M) {
/// PowerPCTargetMachine ctor - Create an ILP32 architecture model
///
-/// FIXME: Should double alignment be 8 bytes? Then we get a PtrAl != DoubleAl
-/// abort
PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
IntrinsicLowering *IL)
- : TargetMachine("PowerPC", IL, false, 4, 4, 4, 4, 4, 4, 4, 4),
+ : TargetMachine("PowerPC", IL, false, 4, 4, 8, 4, 4, 4, 4, 4),
FrameInfo(TargetFrameInfo::StackGrowsDown, 16, -4), JITInfo(*this) {
}
@@ -62,7 +61,7 @@ PowerPCTargetMachine::PowerPCTargetMachine(const Module &M,
/// to implement a static compiler for this target.
///
bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
- std::ostream &Out) {
+ std::ostream &Out) {
// FIXME: Implement efficient support for garbage collection intrinsics.
PM.add(createLowerGCPass());
@@ -115,4 +114,3 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
PM.add(createRegisterAllocator());
PM.add(createPrologEpilogCodeInserter());
}
-