aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 6b09a745c3..895285c748 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -487,7 +487,12 @@ public:
///
SDValue getSetCC(MVT VT, SDValue LHS, SDValue RHS,
ISD::CondCode Cond) {
- return getNode(ISD::SETCC, VT, LHS, RHS, getCondCode(Cond));
+ return getNode(ISD::SETCC, DebugLoc::getUnknownLoc(), VT,
+ LHS, RHS, getCondCode(Cond));
+ }
+ SDValue getSetCC(DebugLoc DL, MVT VT, SDValue LHS, SDValue RHS,
+ ISD::CondCode Cond) {
+ return getNode(ISD::SETCC, DL, VT, LHS, RHS, getCondCode(Cond));
}
/// getVSetCC - Helper function to make it easier to build VSetCC's nodes
@@ -495,7 +500,12 @@ public:
///
SDValue getVSetCC(MVT VT, SDValue LHS, SDValue RHS,
ISD::CondCode Cond) {
- return getNode(ISD::VSETCC, VT, LHS, RHS, getCondCode(Cond));
+ return getNode(ISD::VSETCC, DebugLoc::getUnknownLoc(), VT,
+ LHS, RHS, getCondCode(Cond));
+ }
+ SDValue getVSetCC(DebugLoc DL, MVT VT, SDValue LHS, SDValue RHS,
+ ISD::CondCode Cond) {
+ return getNode(ISD::VSETCC, DL, VT, LHS, RHS, getCondCode(Cond));
}
/// getSelectCC - Helper function to make it easier to build SelectCC's if you
@@ -503,8 +513,13 @@ public:
///
SDValue getSelectCC(SDValue LHS, SDValue RHS,
SDValue True, SDValue False, ISD::CondCode Cond) {
- return getNode(ISD::SELECT_CC, True.getValueType(), LHS, RHS, True, False,
- getCondCode(Cond));
+ return getNode(ISD::SELECT_CC, DebugLoc::getUnknownLoc(), True.getValueType(),
+ LHS, RHS, True, False, getCondCode(Cond));
+ }
+ SDValue getSelectCC(DebugLoc DL, SDValue LHS, SDValue RHS,
+ SDValue True, SDValue False, ISD::CondCode Cond) {
+ return getNode(ISD::SELECT_CC, DL, True.getValueType(),
+ LHS, RHS, True, False, getCondCode(Cond));
}
/// getVAArg - VAArg produces a result and token chain, and takes a pointer