mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Preparation of supporting scheduling info. Need to find info based on selected
CPU. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -76,9 +76,10 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)
|
||||
#if defined(__APPLE__)
|
||||
CPU = GetCurrentPowerPCCPU();
|
||||
#endif
|
||||
uint32_t Bits =
|
||||
SubtargetFeatures::Parse(FS, CPU,
|
||||
SubTypeKV, SubTypeKVSize, FeatureKV, FeatureKVSize);
|
||||
SubtargetFeatures Features(FS);
|
||||
Features.setCPUIfNone(CPU);
|
||||
uint32_t Bits = Features.getBits(SubTypeKV, SubTypeKVSize,
|
||||
FeatureKV, FeatureKVSize);
|
||||
IsGigaProcessor = (Bits & FeatureGPUL ) != 0;
|
||||
Is64Bit = (Bits & Feature64Bit) != 0;
|
||||
HasFSQRT = (Bits & FeatureFSqrt) != 0;
|
||||
|
||||
Reference in New Issue
Block a user