Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
1474f161
Commit
1474f161
authored
18 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Add some new methods for computing sign bit information.
llvm-svn: 28144
parent
21cd9902
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/include/llvm/Target/TargetLowering.h
+13
-0
13 additions, 0 deletions
llvm/include/llvm/Target/TargetLowering.h
with
13 additions
and
0 deletions
llvm/include/llvm/Target/TargetLowering.h
+
13
−
0
View file @
1474f161
...
...
@@ -389,6 +389,19 @@ public:
uint64_t
&
KnownOne
,
unsigned
Depth
=
0
)
const
;
/// ComputeNumSignBits - Return the number of times the sign bit of the
/// register is replicated into the other bits. We know that at least 1 bit
/// is always equal to the sign bit (itself), but other cases can give us
/// information. For example, immediately after an "SRA X, 2", we know that
/// the top 3 bits are all equal to each other, so we return 3.
unsigned
ComputeNumSignBits
(
SDOperand
Op
,
unsigned
Depth
=
0
)
const
;
/// ComputeNumSignBitsForTargetNode - This method can be implemented by
/// targets that want to expose additional information about sign bits to the
/// DAG Combiner.
virtual
unsigned
ComputeNumSignBitsForTargetNode
(
SDOperand
Op
,
unsigned
Depth
=
0
)
const
;
struct
DAGCombinerInfo
{
void
*
DC
;
// The DAG Combiner object.
bool
BeforeLegalize
;
...
...
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