Mercurial > hg > CbC > CbC_llvm
diff lib/Target/Lanai/LanaiISelDAGToDAG.cpp @ 147:c2174574ed3a
LLVM 10
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 16:55:33 +0900 |
parents | 3a76565eade5 |
children |
line wrap: on
line diff
--- a/lib/Target/Lanai/LanaiISelDAGToDAG.cpp Sat Feb 17 09:57:20 2018 +0900 +++ b/lib/Target/Lanai/LanaiISelDAGToDAG.cpp Wed Aug 14 16:55:33 2019 +0900 @@ -1,9 +1,8 @@ //===-- LanaiISelDAGToDAG.cpp - A dag to dag inst selector for Lanai ------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // @@ -11,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "Lanai.h" +#include "LanaiAluCode.h" #include "LanaiMachineFunctionInfo.h" #include "LanaiRegisterInfo.h" #include "LanaiSubtarget.h" @@ -275,7 +274,7 @@ // If we have a custom node, we already have selected! if (Node->isMachineOpcode()) { - DEBUG(errs() << "== "; Node->dump(CurDAG); errs() << "\n"); + LLVM_DEBUG(errs() << "== "; Node->dump(CurDAG); errs() << "\n"); return; } @@ -316,7 +315,7 @@ void LanaiDAGToDAGISel::selectFrameIndex(SDNode *Node) { SDLoc DL(Node); SDValue Imm = CurDAG->getTargetConstant(0, DL, MVT::i32); - int FI = dyn_cast<FrameIndexSDNode>(Node)->getIndex(); + int FI = cast<FrameIndexSDNode>(Node)->getIndex(); EVT VT = Node->getValueType(0); SDValue TFI = CurDAG->getTargetFrameIndex(FI, VT); unsigned Opc = Lanai::ADD_I_LO;