Skip to content

Commit

Permalink
Remove NaClMode
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142338 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
David Meyer committed Oct 18, 2011
1 parent fe04757 commit 928698b
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 42 deletions.
3 changes: 0 additions & 3 deletions lib/Target/ARM/ARM.td
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ include "llvm/Target/Target.td"
def ModeThumb : SubtargetFeature<"thumb-mode", "InThumbMode", "true",
"Thumb mode">;

def ModeNaCl : SubtargetFeature<"nacl-mode", "InNaClMode", "true",
"Native client mode">;

//===----------------------------------------------------------------------===//
// ARM Subtarget features.
//
Expand Down
3 changes: 1 addition & 2 deletions lib/Target/ARM/ARMInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ def IsARM : Predicate<"!Subtarget->isThumb()">,
AssemblerPredicate<"!ModeThumb">;
def IsDarwin : Predicate<"Subtarget->isTargetDarwin()">;
def IsNotDarwin : Predicate<"!Subtarget->isTargetDarwin()">;
def IsNaCl : Predicate<"Subtarget->isTargetNaCl()">,
AssemblerPredicate<"ModeNaCl">;
def IsNaCl : Predicate<"Subtarget->isTargetNaCl()">;

// FIXME: Eventually this will be just "hasV6T2Ops".
def UseMovt : Predicate<"Subtarget->useMovt()">;
Expand Down
1 change: 0 additions & 1 deletion lib/Target/ARM/ARMSubtarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
, HasVMLxForwarding(false)
, SlowFPBrcc(false)
, InThumbMode(false)
, InNaClMode(false)
, HasThumb2(false)
, IsMClass(false)
, NoARM(false)
Expand Down
3 changes: 0 additions & 3 deletions lib/Target/ARM/ARMSubtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ class ARMSubtarget : public ARMGenSubtargetInfo {
/// InThumbMode - True if compiling for Thumb, false for ARM.
bool InThumbMode;

/// InNaClMode - True if targeting Native Client
bool InNaClMode;

/// HasThumb2 - True if Thumb2 instructions are supported.
bool HasThumb2;

Expand Down
8 changes: 0 additions & 8 deletions lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,6 @@ std::string ARM_MC::ParseARMTriple(StringRef TT) {
ARMArchFeature += ",+thumb-mode";
}

Triple TheTriple(TT);
if (TheTriple.getOS() == Triple::NativeClient) {
if (ARMArchFeature.empty())
ARMArchFeature = "+nacl-mode";
else
ARMArchFeature += ",+nacl-mode";
}

return ARMArchFeature;
}

Expand Down
4 changes: 0 additions & 4 deletions lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ std::string X86_MC::ParseX86Triple(StringRef TT) {
FS = "+64bit-mode";
else
FS = "-64bit-mode";
if (TheTriple.getOS() == Triple::NativeClient)
FS += ",+nacl-mode";
else
FS += ",-nacl-mode";
return FS;
}

Expand Down
3 changes: 0 additions & 3 deletions lib/Target/X86/X86.td
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ include "llvm/Target/Target.td"
def Mode64Bit : SubtargetFeature<"64bit-mode", "In64BitMode", "true",
"64-bit mode (x86_64)">;

def ModeNaCl : SubtargetFeature<"nacl-mode", "InNaClMode", "true",
"Native Client mode">;

//===----------------------------------------------------------------------===//
// X86 Subtarget features.
//===----------------------------------------------------------------------===//
Expand Down
10 changes: 2 additions & 8 deletions lib/Target/X86/X86InstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,8 @@ def In64BitMode : Predicate<"Subtarget->is64Bit()">,
AssemblerPredicate<"Mode64Bit">;
def IsWin64 : Predicate<"Subtarget->isTargetWin64()">;
def NotWin64 : Predicate<"!Subtarget->isTargetWin64()">;
def IsNaCl : Predicate<"Subtarget->isTargetNaCl()">,
AssemblerPredicate<"ModeNaCl">;
def IsNaCl32 : Predicate<"Subtarget->isTargetNaCl32()">,
AssemblerPredicate<"ModeNaCl,!Mode64Bit">;
def IsNaCl64 : Predicate<"Subtarget->isTargetNaCl64()">,
AssemblerPredicate<"ModeNaCl,Mode64Bit">;
def NotNaCl : Predicate<"!Subtarget->isTargetNaCl()">,
AssemblerPredicate<"!ModeNaCl">;
def IsNaCl : Predicate<"Subtarget->isTargetNaCl()">;
def NotNaCl : Predicate<"!Subtarget->isTargetNaCl()">;
def SmallCode : Predicate<"TM.getCodeModel() == CodeModel::Small">;
def KernelCode : Predicate<"TM.getCodeModel() == CodeModel::Kernel">;
def FarData : Predicate<"TM.getCodeModel() != CodeModel::Small &&"
Expand Down
8 changes: 1 addition & 7 deletions lib/Target/X86/X86Subtarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
// FIXME: this is a known good value for Yonah. How about others?
, MaxInlineSizeThreshold(128)
, TargetTriple(TT)
, In64BitMode(is64Bit)
, InNaClMode(false) {
, In64BitMode(is64Bit) {
// Determine default and user specified characteristics
if (!FS.empty() || !CPU.empty()) {
std::string CPUName = CPU;
Expand Down Expand Up @@ -368,11 +367,6 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
if (In64BitMode)
ToggleFeature(X86::Mode64Bit);

if (isTargetNaCl()) {
InNaClMode = true;
ToggleFeature(X86::ModeNaCl);
}

if (HasAVX)
X86SSELevel = NoMMXSSE;

Expand Down
3 changes: 0 additions & 3 deletions lib/Target/X86/X86Subtarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,6 @@ class X86Subtarget : public X86GenSubtargetInfo {
/// In64BitMode - True if compiling for 64-bit, false for 32-bit.
bool In64BitMode;

/// InNaClMode - True if compiling for Native Client target.
bool InNaClMode;

public:

/// This constructor initializes the data members to match that
Expand Down

0 comments on commit 928698b

Please sign in to comment.