Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
dfd4eb92
Commit
dfd4eb92
authored
10 years ago
by
Jingyue Wu
Browse files
Options
Downloads
Patches
Plain Diff
[NVPTX] Remove dead code in NVPTXTargetTransformInfo (NFC)
llvm-svn: 221668
parent
961d4694
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
+2
-12
2 additions, 12 deletions
llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
with
2 additions
and
12 deletions
llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
+
2
−
12
View file @
dfd4eb92
...
@@ -36,22 +36,12 @@ void initializeNVPTXTTIPass(PassRegistry &);
...
@@ -36,22 +36,12 @@ void initializeNVPTXTTIPass(PassRegistry &);
namespace
{
namespace
{
class
NVPTXTTI
final
:
public
ImmutablePass
,
public
TargetTransformInfo
{
class
NVPTXTTI
final
:
public
ImmutablePass
,
public
TargetTransformInfo
{
const
NVPTXTargetMachine
*
TM
;
const
NVPTXSubtarget
*
ST
;
const
NVPTXTargetLowering
*
TLI
;
/// Estimate the overhead of scalarizing an instruction. Insert and Extract
/// are set if the result needs to be inserted and/or extracted from vectors.
unsigned
getScalarizationOverhead
(
Type
*
Ty
,
bool
Insert
,
bool
Extract
)
const
;
public:
public:
NVPTXTTI
()
:
ImmutablePass
(
ID
)
,
TM
(
nullptr
),
ST
(
nullptr
),
TLI
(
nullptr
)
{
NVPTXTTI
()
:
ImmutablePass
(
ID
)
{
llvm_unreachable
(
"This pass cannot be directly constructed"
);
llvm_unreachable
(
"This pass cannot be directly constructed"
);
}
}
NVPTXTTI
(
const
NVPTXTargetMachine
*
TM
)
NVPTXTTI
(
const
NVPTXTargetMachine
*
TM
)
:
ImmutablePass
(
ID
)
{
:
ImmutablePass
(
ID
),
TM
(
TM
),
ST
(
TM
->
getSubtargetImpl
()),
TLI
(
TM
->
getSubtargetImpl
()
->
getTargetLowering
())
{
initializeNVPTXTTIPass
(
*
PassRegistry
::
getPassRegistry
());
initializeNVPTXTTIPass
(
*
PassRegistry
::
getPassRegistry
());
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment