diff options
| author | Dale Johannesen <dalej@apple.com> | 2009-12-23 07:32:51 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2009-12-23 07:32:51 +0000 |
| commit | a864a6718573ce78a3294e796bb79511ad85ff5c (patch) | |
| tree | f363ce7a40b322c9acd989f69615eea2f8cf2f72 /llvm/lib/CodeGen/SelectionDAG | |
| parent | a7bcbde814070b71306dfbee42841d8fe3699e66 (diff) | |
| download | bcm5719-llvm-a864a6718573ce78a3294e796bb79511ad85ff5c.tar.gz bcm5719-llvm-a864a6718573ce78a3294e796bb79511ad85ff5c.zip | |
Use more sensible type for flags in asms. PR 5570.
Patch by Sylve`re Teissier (sorry, ASCII only).
llvm-svn: 91988
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 85c95449b97..e3c219cd0b2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5326,13 +5326,11 @@ void RegsForValue::AddInlineAsmOperands(unsigned Code, bool HasMatching,unsigned MatchingIdx, SelectionDAG &DAG, unsigned Order, std::vector<SDValue> &Ops) const { - EVT IntPtrTy = DAG.getTargetLoweringInfo().getPointerTy(); assert(Regs.size() < (1 << 13) && "Too many inline asm outputs!"); unsigned Flag = Code | (Regs.size() << 3); if (HasMatching) Flag |= 0x80000000 | (MatchingIdx << 16); - - SDValue Res = DAG.getTargetConstant(Flag, IntPtrTy); + SDValue Res = DAG.getTargetConstant(Flag, MVT::i32); Ops.push_back(Res); if (DisableScheduling) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index a640c7dc208..1b6b62a3dae 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1182,9 +1182,8 @@ SelectInlineAsmMemoryOperands(std::vector<SDValue> &Ops) { } // Add this to the output node. - EVT IntPtrTy = TLI.getPointerTy(); Ops.push_back(CurDAG->getTargetConstant(4/*MEM*/ | (SelOps.size()<< 3), - IntPtrTy)); + MVT::i32)); Ops.insert(Ops.end(), SelOps.begin(), SelOps.end()); i += 2; } |

