llvm.org GIT mirror llvm / 844b892
Make the constant honest. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33557 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Laskey 13 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
36903690 OS << "SDNode *Select_LABEL(const SDOperand &N) {\n"
36913691 << " SDOperand Chain = N.getOperand(0);\n"
36923692 << " SDOperand N1 = N.getOperand(1);\n"
3693 << " unsigned C = cast(N1)->getValue();\n"
3694 << " SDOperand Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n"
36933695 << " AddToISelQueue(Chain);\n"
36943696 << " return CurDAG->getTargetNode(TargetInstrInfo::LABEL,\n"
3695 << " MVT::Other, N1, Chain);\n"
3697 << " MVT::Other, Tmp, Chain);\n"
36963698 << "}\n\n";
36973699
36983700 OS << "// The main instruction selector code.\n"