diff options
| author | Craig Topper <craig.topper@sifive.com> | 2024-04-24 12:57:26 -0700 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2024-04-24 13:11:57 -0700 |
| commit | c5dcb5239e5a3ee68155ba2d09d1fa37ca512cd7 (patch) | |
| tree | 0c87cda3ba1d5b11ec3b695de171109fe7b55a2f /llvm/lib/CodeGen | |
| parent | 11bd19a7a25b291af61b6c06cb249b567c116d0e (diff) | |
| download | llvm-c5dcb5239e5a3ee68155ba2d09d1fa37ca512cd7.tar.gz llvm-c5dcb5239e5a3ee68155ba2d09d1fa37ca512cd7.tar.bz2 llvm-c5dcb5239e5a3ee68155ba2d09d1fa37ca512cd7.zip | |
[SelectionDAG] Move GlobalAddressSDNode and AddrSpaceCastSDNode constructors into header. NFC
These constructors are no more complicated than any of the other
*SDNode constructors that are already in the header.
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 6f7fbd510f24..5b7d6376d7d7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -11807,20 +11807,6 @@ HandleSDNode::~HandleSDNode() { DropOperands(); } -GlobalAddressSDNode::GlobalAddressSDNode(unsigned Opc, unsigned Order, - const DebugLoc &DL, - const GlobalValue *GA, SDVTList VTs, - int64_t o, unsigned TF) - : SDNode(Opc, Order, DL, VTs), Offset(o), TargetFlags(TF) { - TheGlobal = GA; -} - -AddrSpaceCastSDNode::AddrSpaceCastSDNode(unsigned Order, const DebugLoc &dl, - SDVTList VTs, unsigned SrcAS, - unsigned DestAS) - : SDNode(ISD::ADDRSPACECAST, Order, dl, VTs), SrcAddrSpace(SrcAS), - DestAddrSpace(DestAS) {} - MemSDNode::MemSDNode(unsigned Opc, unsigned Order, const DebugLoc &dl, SDVTList VTs, EVT memvt, MachineMemOperand *mmo) : SDNode(Opc, Order, dl, VTs), MemoryVT(memvt), MMO(mmo) { |
