[PATCH] D67380: [globalisel][knownbits] Allow targets to call GISelKnownBits::computeKnownBitsImpl()
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 13:54:01 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373264: [globalisel][knownbits] Allow targets to call GISelKnownBits… (authored by dsanders, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D67380?vs=219453&id=222496#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67380/new/
https://reviews.llvm.org/D67380
Files:
llvm/trunk/include/llvm/CodeGen/TargetLowering.h
llvm/trunk/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Index: llvm/trunk/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
+++ llvm/trunk/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
@@ -119,7 +119,8 @@
switch (Opcode) {
default:
- TL.computeKnownBitsForTargetInstr(R, Known, DemandedElts, MRI, Depth);
+ TL.computeKnownBitsForTargetInstr(*this, R, Known, DemandedElts, MRI,
+ Depth);
break;
case TargetOpcode::COPY: {
MachineOperand Dst = MI.getOperand(0);
Index: llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -2589,8 +2589,9 @@
}
void TargetLowering::computeKnownBitsForTargetInstr(
- Register R, KnownBits &Known, const APInt &DemandedElts,
- const MachineRegisterInfo &MRI, unsigned Depth) const {
+ GISelKnownBits &Analysis, Register R, KnownBits &Known,
+ const APInt &DemandedElts, const MachineRegisterInfo &MRI,
+ unsigned Depth) const {
Known.resetAll();
}
Index: llvm/trunk/include/llvm/CodeGen/TargetLowering.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/TargetLowering.h
+++ llvm/trunk/include/llvm/CodeGen/TargetLowering.h
@@ -73,6 +73,7 @@
class FastISel;
class FunctionLoweringInfo;
class GlobalValue;
+class GISelKnownBits;
class IntrinsicInst;
struct KnownBits;
class LLVMContext;
@@ -3167,7 +3168,8 @@
/// or one and return them in the KnownZero/KnownOne bitsets. The DemandedElts
/// argument allows us to only collect the known bits that are shared by the
/// requested vector elements. This is for GISel.
- virtual void computeKnownBitsForTargetInstr(Register R, KnownBits &Known,
+ virtual void computeKnownBitsForTargetInstr(GISelKnownBits &Analysis,
+ Register R, KnownBits &Known,
const APInt &DemandedElts,
const MachineRegisterInfo &MRI,
unsigned Depth = 0) const;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67380.222496.patch
Type: text/x-patch
Size: 2302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190930/d27b08c3/attachment.bin>
More information about the llvm-commits
mailing list