diff options
author | Andrew Trick <atrick@apple.com> | 2012-04-19 01:34:10 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-04-19 01:34:10 +0000 |
commit | fc728fbdc2631ce8f343cf9b7292d218fde7419f (patch) | |
tree | fa897863d259ef63d5a40d1ade8161c5d454c32c /include | |
parent | 27745c19a957f1298cc2c56e6dabea5ef244a1c8 (diff) | |
download | external_llvm-fc728fbdc2631ce8f343cf9b7292d218fde7419f.zip external_llvm-fc728fbdc2631ce8f343cf9b7292d218fde7419f.tar.gz external_llvm-fc728fbdc2631ce8f343cf9b7292d218fde7419f.tar.bz2 |
Allow targets to select the default scheduler by name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155090 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachinePassRegistry.h | 1 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineScheduler.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachinePassRegistry.h b/include/llvm/CodeGen/MachinePassRegistry.h index d5008ca..90ee7f4 100644 --- a/include/llvm/CodeGen/MachinePassRegistry.h +++ b/include/llvm/CodeGen/MachinePassRegistry.h @@ -99,6 +99,7 @@ public: MachinePassRegistryNode *getList() { return List; } MachinePassCtor getDefault() { return Default; } void setDefault(MachinePassCtor C) { Default = C; } + void setDefault(StringRef Name); void setListener(MachinePassRegistryListener *L) { Listener = L; } /// Add - Adds a function pass to the registration list. diff --git a/include/llvm/CodeGen/MachineScheduler.h b/include/llvm/CodeGen/MachineScheduler.h index e852009..474c95d 100644 --- a/include/llvm/CodeGen/MachineScheduler.h +++ b/include/llvm/CodeGen/MachineScheduler.h @@ -81,6 +81,9 @@ public: static void setDefault(ScheduleDAGCtor C) { Registry.setDefault((MachinePassCtor)C); } + static void setDefault(StringRef Name) { + Registry.setDefault(Name); + } static void setListener(MachinePassRegistryListener *L) { Registry.setListener(L); } |