mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Add ABI infrastructure for PPC64.
The generic ABI works well with PPC64 except for LLVM PR 14779. (http://llvm.org/bugs/show_bug.cgi?id=14779) The new ABI infrastucture is based on the UnknownTargetABI. The PPC64 specific parts coming soon.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "gen/logger.h"
|
||||
#include "gen/dvalue.h"
|
||||
#include "gen/abi-generic.h"
|
||||
#include "gen/abi-ppc64.h"
|
||||
#include "gen/abi-x86.h"
|
||||
#include "gen/abi-x86-64.h"
|
||||
#include "ir/irfunction.h"
|
||||
@@ -74,6 +75,8 @@ TargetABI * TargetABI::getTarget()
|
||||
return getX86TargetABI();
|
||||
case ARCHx86_64:
|
||||
return getX86_64TargetABI();
|
||||
case ARCHppc_64:
|
||||
return getPPC64TargetABI();
|
||||
default:
|
||||
Logger::cout() << "WARNING: Unknown ABI, guessing...\n";
|
||||
return new UnknownTargetABI;
|
||||
|
||||
Reference in New Issue
Block a user