projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a long standing tail call optimization bug. When a libcall is emitted
[oota-llvm.git]
/
lib
/
Target
/
XCore
/
XCoreSubtarget.h
diff --git
a/lib/Target/XCore/XCoreSubtarget.h
b/lib/Target/XCore/XCoreSubtarget.h
index 34d142561c1300b5185ef9cf8ed5dc038b3a1ec1..8d0f254e087a73b36e1112bc66e5829fb0f78ed0 100644
(file)
--- a/
lib/Target/XCore/XCoreSubtarget.h
+++ b/
lib/Target/XCore/XCoreSubtarget.h
@@
-1,4
+1,4
@@
-//===
==-- XCoreSubtarget.h - Define Subtarget for the XCore -----*- C++ -*--
==//
+//===
-- XCoreSubtarget.h - Define Subtarget for the XCore -------*- C++ -*-=
==//
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
@@
-7,35
+7,36
@@
//
//===----------------------------------------------------------------------===//
//
//
//===----------------------------------------------------------------------===//
//
-// This file declares the XCore specific subclass of TargetSubtarget.
+// This file declares the XCore specific subclass of TargetSubtarget
Info
.
//
//===----------------------------------------------------------------------===//
#ifndef XCORESUBTARGET_H
#define XCORESUBTARGET_H
//
//===----------------------------------------------------------------------===//
#ifndef XCORESUBTARGET_H
#define XCORESUBTARGET_H
-#include "llvm/Target/TargetSubtarget.h"
+#include "llvm/Target/TargetSubtarget
Info
.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetMachine.h"
-
#include <string>
#include <string>
+#define GET_SUBTARGETINFO_HEADER
+#include "XCoreGenSubtargetInfo.inc"
+
namespace llvm {
namespace llvm {
+class StringRef;
-class XCoreSubtarget : public
TargetSubtarget
{
-
bool IsXS1B
;
+class XCoreSubtarget : public
XCoreGenSubtargetInfo
{
+
virtual void anchor()
;
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
///
public:
/// This constructor initializes the data members to match that
/// of the specified triple.
///
- XCoreSubtarget(const std::string &TT, const std::string &FS);
-
- bool isXS1B() const { return IsXS1B; }
+ XCoreSubtarget(const std::string &TT, const std::string &CPU,
+ const std::string &FS);
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
- std::string ParseSubtargetFeatures(const std::string &FS,
- const std::string &CPU);
+ void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
};
} // End llvm namespace
};
} // End llvm namespace