projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move DataLayout back to the TargetMachine from TargetSubtargetInfo
[oota-llvm.git]
/
include
/
llvm
/
Target
/
TargetMachine.h
diff --git
a/include/llvm/Target/TargetMachine.h
b/include/llvm/Target/TargetMachine.h
index fc82dfa869f7e6529046c5e25202c76b37a5ddc3..2d69493a0dd2c6673cfd338186337dacf132cf33 100644
(file)
--- a/
include/llvm/Target/TargetMachine.h
+++ b/
include/llvm/Target/TargetMachine.h
@@
-44,6
+44,7
@@
class ScalarTargetTransformInfo;
class VectorTargetTransformInfo;
class formatted_raw_ostream;
class raw_ostream;
class VectorTargetTransformInfo;
class formatted_raw_ostream;
class raw_ostream;
+class TargetLoweringObjectFile;
// The old pass manager infrastructure is hidden in a legacy namespace now.
namespace legacy {
// The old pass manager infrastructure is hidden in a legacy namespace now.
namespace legacy {
@@
-99,9
+100,12
@@
public:
virtual const TargetSubtargetInfo *getSubtargetImpl() const {
return nullptr;
}
virtual const TargetSubtargetInfo *getSubtargetImpl() const {
return nullptr;
}
- virtual const TargetSubtargetInfo *getSubtargetImpl(const Function
*
) const {
+ virtual const TargetSubtargetInfo *getSubtargetImpl(const Function
&
) const {
return getSubtargetImpl();
}
return getSubtargetImpl();
}
+ virtual TargetLoweringObjectFile *getObjFileLowering() const {
+ return nullptr;
+ }
/// getSubtarget - This method returns a pointer to the specified type of
/// TargetSubtargetInfo. In debug builds, it verifies that the object being
/// getSubtarget - This method returns a pointer to the specified type of
/// TargetSubtargetInfo. In debug builds, it verifies that the object being
@@
-113,8
+117,16
@@
public:
return *static_cast<const STC*>(getSubtargetImpl());
}
return *static_cast<const STC*>(getSubtargetImpl());
}
+ /// getDataLayout - This method returns a pointer to the DataLayout for
+ /// the target. It should be unchanging for every subtarget.
+ virtual const DataLayout *getDataLayout() const {
+ return nullptr;
+ }
+
/// \brief Reset the target options based on the function's attributes.
/// \brief Reset the target options based on the function's attributes.
- void resetTargetOptions(const MachineFunction *MF) const;
+ // FIXME: Remove TargetOptions that affect per-function code generation
+ // from TargetMachine.
+ void resetTargetOptions(const Function &F) const;
/// getMCAsmInfo - Return target specific asm information.
///
/// getMCAsmInfo - Return target specific asm information.
///