-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Scalarizer: Replace cl::opts with pass parameters #110645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| //===----------------------------------------------------------------------===// | ||
|
|
||
| #include "DirectXTargetMachine.h" | ||
| #include "DXILDataScalarization.h" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did this need to be added? We are only using the legacy pass in this file?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need the pass constructor, transitively included by DirectXPassRegistry.def |
||
| #include "DXILIntrinsicExpansion.h" | ||
| #include "DXILOpLowering.h" | ||
| #include "DXILPrettyPrinter.h" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| ; RUN: not opt -passes='scalarizer<unknown>' -disable-output %s 2>&1 | FileCheck -check-prefix=UNKNOWNERR %s | ||
| ; RUN: not opt -passes='scalarizer<;>' -disable-output %s 2>&1 | FileCheck -check-prefix=UNKNOWNERR %s | ||
| ; RUN: not opt -passes='scalarizer<min-bits=>' -disable-output %s 2>&1 | FileCheck -check-prefix=MINBITS-EMPTY-ERR %s | ||
| ; RUN: not opt -passes='scalarizer<min-bits=x>' -disable-output %s 2>&1 | FileCheck -check-prefix=MINBITS-NOTINT-ERR %s | ||
arsenm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ; RUN: not opt -passes='scalarizer<no-min-bits=10>' -disable-output %s 2>&1 | FileCheck -check-prefix=UNKNOWNERR %s | ||
|
|
||
| ; UNKNOWNERR: invalid Scalarizer pass parameter '{{.*}}' | ||
| ; MINBITS-EMPTY-ERR: invalid argument to Scalarizer pass min-bits parameter: '' | ||
| ; MINBITS-NOTINT-ERR: invalid argument to Scalarizer pass min-bits parameter: 'x' | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't impact how we set our load/store flag so mostly fine with this change.
llvm-project/llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
Lines 91 to 93 in 38a8000