summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-07 05:20:54 +0000
committerChris Lattner <sabre@nondot.org>2010-04-07 05:20:54 +0000
commit3b9f02a2aa4ccbfcc3e773e7f7472a5e2a959290 (patch)
treebc2e04a63b3d25a90b27d3ecc84cb8ce778e4cf7 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
parent7614b5b475be69a652dcf0f6f0a88e72e75ae1f2 (diff)
downloadbcm5719-llvm-3b9f02a2aa4ccbfcc3e773e7f7472a5e2a959290.tar.gz
bcm5719-llvm-3b9f02a2aa4ccbfcc3e773e7f7472a5e2a959290.zip
Three changes:
1. Introduce some enums and accessors in the InlineAsm class that eliminate a ton of magic numbers when handling inline asm SDNode. 2. Add a new MDNodeSDNode selection dag node type that holds a MDNode (shocking!) 3. Add a new argument to ISD::INLINEASM nodes that hold !srcloc metadata, propagating it to the instruction emitter, which drops it. No functionality change. llvm-svn: 100605
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
index 6b829b61066..43d83336a57 100644
--- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
+++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
@@ -59,7 +59,8 @@ namespace llvm {
if (isa<JumpTableSDNode>(Node)) return true;
if (isa<ExternalSymbolSDNode>(Node)) return true;
if (isa<BlockAddressSDNode>(Node)) return true;
- if (Node->getOpcode() == ISD::EntryToken) return true;
+ if (Node->getOpcode() == ISD::EntryToken ||
+ isa<MDNodeSDNode>(Node)) return true;
return false;
}
OpenPOWER on IntegriCloud