diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-19 19:33:12 +0000 | 
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-19 19:33:12 +0000 | 
| commit | cf55a657f0c585a41d708ca612068c21957aff61 (patch) | |
| tree | d0cb9223d7dc2cfaf2dc8ec8b27c9c60469af74e /llvm/lib/Target/WebAssembly | |
| parent | f7b43230b844373b421571467864a5fbf644e38d (diff) | |
| download | bcm5719-llvm-cf55a657f0c585a41d708ca612068c21957aff61.tar.gz bcm5719-llvm-cf55a657f0c585a41d708ca612068c21957aff61.zip | |
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')
| -rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp index 9b10c8d905d..414f055932b 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 | 

