From a844bdeab31ef04221e7ef59a8467893584cc14d Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 2 Feb 2008 04:07:54 +0000 Subject: SDIsel processes llvm.dbg.declare by recording the variable debug information descriptor and its corresponding stack frame index in MachineModuleInfo. This only works if the local variable is "homed" in the stack frame. It does not work for byval parameter, etc. Added ISD::DECLARE node type to represent llvm.dbg.declare intrinsic. Now the intrinsic calls are lowered into a SDNode and lives on through out the codegen passes. For now, since all the debugging information recording is done at isel time, when a ISD::DECLARE node is selected, it has the side effect of also recording the variable. This is a short term solution that should be fixed in time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46659 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeEmitterGen.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/TableGen/CodeEmitterGen.cpp') diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp index ddf8eeb84a..60d196cb4a 100644 --- a/utils/TableGen/CodeEmitterGen.cpp +++ b/utils/TableGen/CodeEmitterGen.cpp @@ -27,6 +27,7 @@ void CodeEmitterGen::reverseBits(std::vector &Insts) { if (R->getName() == "PHI" || R->getName() == "INLINEASM" || R->getName() == "LABEL" || + R->getName() == "DECLARE" || R->getName() == "EXTRACT_SUBREG" || R->getName() == "INSERT_SUBREG") continue; @@ -100,6 +101,7 @@ void CodeEmitterGen::run(std::ostream &o) { if (R->getName() == "PHI" || R->getName() == "INLINEASM" || R->getName() == "LABEL" || + R->getName() == "DECLARE" || R->getName() == "EXTRACT_SUBREG" || R->getName() == "INSERT_SUBREG") { o << " 0U"; @@ -132,6 +134,7 @@ void CodeEmitterGen::run(std::ostream &o) { if (InstName == "PHI" || InstName == "INLINEASM" || InstName == "LABEL"|| + InstName == "DECLARE"|| InstName == "EXTRACT_SUBREG" || InstName == "INSERT_SUBREG") continue; -- cgit v1.2.3