mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
[llvm-mca] Simplify the Pipeline constructor. NFC
llvm-svn: 336984
This commit is contained in:
parent
3af21f0841
commit
2c65d72a0f
@ -40,9 +40,7 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
|
||||
SM, Opts.LoadQueueSize, Opts.StoreQueueSize, Opts.AssumeNoAlias);
|
||||
|
||||
// Create the pipeline and its stages.
|
||||
auto P = llvm::make_unique<Pipeline>(
|
||||
Opts.DispatchWidth, Opts.RegisterFileSize, Opts.LoadQueueSize,
|
||||
Opts.StoreQueueSize, Opts.AssumeNoAlias);
|
||||
auto P = llvm::make_unique<Pipeline>();
|
||||
auto F = llvm::make_unique<FetchStage>(IB, SrcMgr);
|
||||
auto D = llvm::make_unique<DispatchStage>(
|
||||
STI, MRI, Opts.RegisterFileSize, Opts.DispatchWidth, *RCU, *PRF, *HWS);
|
||||
|
@ -69,10 +69,7 @@ class Pipeline {
|
||||
void notifyCycleEnd();
|
||||
|
||||
public:
|
||||
Pipeline(unsigned DispatchWidth = 0, unsigned RegisterFileSize = 0,
|
||||
unsigned LoadQueueSize = 0, unsigned StoreQueueSize = 0,
|
||||
bool AssumeNoAlias = false)
|
||||
: Cycles(0) {}
|
||||
Pipeline() : Cycles(0) {}
|
||||
void appendStage(std::unique_ptr<Stage> S) { Stages.push_back(std::move(S)); }
|
||||
void run();
|
||||
void addEventListener(HWEventListener *Listener);
|
||||
|
Loading…
Reference in New Issue
Block a user