[llvm] r267449 - AMDGPU: Add DAG to debug dump
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 12:27:10 PDT 2016
Author: arsenm
Date: Mon Apr 25 14:27:09 2016
New Revision: 267449
URL: http://llvm.org/viewvc/llvm-project?rev=267449&view=rev
Log:
AMDGPU: Add DAG to debug dump
Also reorder case to match enum order
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp?rev=267449&r1=267448&r2=267449&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp Mon Apr 25 14:27:09 2016
@@ -642,7 +642,7 @@ SDValue AMDGPUTargetLowering::LowerOpera
SelectionDAG &DAG) const {
switch (Op.getOpcode()) {
default:
- Op.getNode()->dump();
+ Op->dump(&DAG);
llvm_unreachable("Custom lowering code for this"
"instruction is not implemented yet!");
break;
@@ -2758,7 +2758,6 @@ const char* AMDGPUTargetLowering::getTar
NODE_NAME_CASE(CONST_ADDRESS)
NODE_NAME_CASE(REGISTER_LOAD)
NODE_NAME_CASE(REGISTER_STORE)
- NODE_NAME_CASE(LOAD_CONSTANT)
NODE_NAME_CASE(LOAD_INPUT)
NODE_NAME_CASE(SAMPLE)
NODE_NAME_CASE(SAMPLEB)
@@ -2776,6 +2775,7 @@ const char* AMDGPUTargetLowering::getTar
NODE_NAME_CASE(INTERP_P1)
NODE_NAME_CASE(INTERP_P2)
NODE_NAME_CASE(STORE_MSKOR)
+ NODE_NAME_CASE(LOAD_CONSTANT)
NODE_NAME_CASE(TBUFFER_STORE_FORMAT)
NODE_NAME_CASE(ATOMIC_CMP_SWAP)
NODE_NAME_CASE(ATOMIC_INC)
More information about the llvm-commits
mailing list