aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-03-19 19:33:12 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-03-19 19:33:12 +0000
commitcf55a657f0c585a41d708ca612068c21957aff61 (patch)
treed0cb9223d7dc2cfaf2dc8ec8b27c9c60469af74e /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentf7b43230b844373b421571467864a5fbf644e38d (diff)
downloadllvm-cf55a657f0c585a41d708ca612068c21957aff61.zip
llvm-cf55a657f0c585a41d708ca612068c21957aff61.tar.gz
llvm-cf55a657f0c585a41d708ca612068c21957aff61.tar.bz2
CodeGen: Refactor regallocator command line and target selection
This will allow targets more flexibility to replace the register allocator core passes. In a future commit, AMDGPU will run the core register assignment passes twice, and will also want to disallow using the standard -regalloc option. llvm-svn: 356506
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 9b10c8d..414f055 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -191,6 +191,12 @@ public:
void addPostRegAlloc() override;
bool addGCPasses() override { return false; }
void addPreEmitPass() override;
+
+ // No reg alloc
+ bool addRegAssignmentFast() override { return false; }
+
+ // No reg alloc
+ bool addRegAssignmentOptimized() override { return false; }
};
} // end anonymous namespace