mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Add POWER6 and POWER7 CPU types to the PPC backend.
No functional change; these will be used by upcoming scheduler enhancements. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f36fa981a
commit
622382fc5e
@ -35,6 +35,8 @@ def Directive970 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_970", "">;
|
|||||||
def Directive32 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_32", "">;
|
def Directive32 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_32", "">;
|
||||||
def Directive64 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_64", "">;
|
def Directive64 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_64", "">;
|
||||||
def DirectiveA2 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_A2", "">;
|
def DirectiveA2 : SubtargetFeature<"", "DarwinDirective", "PPC::DIR_A2", "">;
|
||||||
|
def DirectivePwr6: SubtargetFeature<"", "DarwinDirective", "PPC::DIR_PWR6", "">;
|
||||||
|
def DirectivePwr7: SubtargetFeature<"", "DarwinDirective", "PPC::DIR_PWR7", "">;
|
||||||
|
|
||||||
def Feature64Bit : SubtargetFeature<"64bit","Has64BitSupport", "true",
|
def Feature64Bit : SubtargetFeature<"64bit","Has64BitSupport", "true",
|
||||||
"Enable 64-bit instructions">;
|
"Enable 64-bit instructions">;
|
||||||
@ -92,6 +94,14 @@ def : Processor<"a2", PPCA2Itineraries, [DirectiveA2, FeatureBookE,
|
|||||||
FeatureFSqrt, FeatureSTFIWX,
|
FeatureFSqrt, FeatureSTFIWX,
|
||||||
Feature64Bit
|
Feature64Bit
|
||||||
/*, Feature64BitRegs */]>;
|
/*, Feature64BitRegs */]>;
|
||||||
|
def : Processor<"pwr6", G5Itineraries,
|
||||||
|
[DirectivePwr6, FeatureAltivec,
|
||||||
|
FeatureGPUL, FeatureFSqrt, FeatureSTFIWX,
|
||||||
|
Feature64Bit /*, Feature64BitRegs */]>;
|
||||||
|
def : Processor<"pwr7", G5Itineraries,
|
||||||
|
[DirectivePwr7, FeatureAltivec,
|
||||||
|
FeatureGPUL, FeatureFSqrt, FeatureSTFIWX,
|
||||||
|
Feature64Bit /*, Feature64BitRegs */]>;
|
||||||
def : Processor<"ppc", G3Itineraries, [Directive32]>;
|
def : Processor<"ppc", G3Itineraries, [Directive32]>;
|
||||||
def : Processor<"ppc64", G5Itineraries,
|
def : Processor<"ppc64", G5Itineraries,
|
||||||
[Directive64, FeatureAltivec,
|
[Directive64, FeatureAltivec,
|
||||||
|
@ -451,6 +451,8 @@ void PPCDarwinAsmPrinter::EmitStartOfAsmFile(Module &M) {
|
|||||||
"ppc750",
|
"ppc750",
|
||||||
"ppc970",
|
"ppc970",
|
||||||
"ppcA2",
|
"ppcA2",
|
||||||
|
"power6",
|
||||||
|
"power7",
|
||||||
"ppc64"
|
"ppc64"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,6 +41,8 @@ namespace PPC {
|
|||||||
DIR_750,
|
DIR_750,
|
||||||
DIR_970,
|
DIR_970,
|
||||||
DIR_A2,
|
DIR_A2,
|
||||||
|
DIR_PWR6,
|
||||||
|
DIR_PWR7,
|
||||||
DIR_64
|
DIR_64
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user