summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2020-01-04 14:13:06 -0500
committerMatt Arsenault <arsenm2@gmail.com>2020-01-06 17:21:51 -0500
commit0b093f02120e212b9c1305eae626e9b5e99b92fa (patch)
treea8f2bd230d6a926ad90380558177a9a8f31f08ec /llvm/include
parent7f2db2917da9e4fe43976b7abe37400812ed5dea (diff)
downloadbcm5719-llvm-0b093f02120e212b9c1305eae626e9b5e99b92fa.tar.gz
bcm5719-llvm-0b093f02120e212b9c1305eae626e9b5e99b92fa.zip
GlobalISel: Start adding computeNumSignBits to GISelKnownBits
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h b/llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h
index dfe5a7f3177..d44612f54ae 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h
@@ -40,6 +40,10 @@ public:
const APInt &DemandedElts,
unsigned Depth = 0);
+ unsigned computeNumSignBits(Register R, const APInt &DemandedElts,
+ unsigned Depth = 0);
+ unsigned computeNumSignBits(Register R, unsigned Depth = 0);
+
// KnownBitsAPI
KnownBits getKnownBits(Register R);
// Calls getKnownBits for first operand def of MI.
OpenPOWER on IntegriCloud