[NFC] Encapsulate MemOp logic
authorGuillaume Chatelet <gchatelet@google.com>
Tue, 4 Feb 2020 08:52:21 +0000 (09:52 +0100)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 4 Feb 2020 09:36:26 +0000 (10:36 +0100)
commitb8144c053620c2c8b3d100815f806004970ed936
tree6112ff53a8aa35582ca14afc0fd59a6d35db2808
parent1132f87fbf1373835d7030354f6210c5dab62c3e
[NFC] Encapsulate MemOp logic

Summary:
This patch simply introduces functions instead of directly accessing the fields.
This helps introducing additional check logic. A second patch will add simplifying functions.

Reviewers: courbet

Subscribers: arsenm, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, jsji, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73945
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/BPF/BPFISelLowering.h
llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp