Displaying 4 results from an estimated 4 matches for "hasfloatingpointexceptions".
2014 Aug 07
3
[LLVMdev] Proposal: Add a target lowering hook to state that target supports floating point exception behavior.
...nclude/llvm/Target/TargetLowering.h (revision 215148)
+++ include/llvm/Target/TargetLowering.h (working copy)
@@ -261,6 +261,11 @@
bool isMaskAndBranchFoldingLegal() const {
return MaskAndBranchFoldingIsLegal;
}
+
+ /// Return true if target supports floating point exceptions.
+ bool hasFloatingPointExceptions() const {
+ return FloatingPointExceptions;
+ }
/// Return the ValueType of the result of SETCC operations. Also used to
/// obtain the target's preferred type for the condition operand of SELECT and
@@ -1053,6 +1058,12 @@
/// possible, should be replaced by an alternate sequenc...
2014 Aug 08
3
[LLVMdev] Proposal: Add a target lowering hook to state that target supports floating point exception behavior.
.../llvm/Target/TargetLowering.h (working copy)
>> @@ -261,6 +261,11 @@
>> bool isMaskAndBranchFoldingLegal() const {
>> return MaskAndBranchFoldingIsLegal;
>> }
>> +
>> + /// Return true if target supports floating point exceptions.
>> + bool hasFloatingPointExceptions() const {
>> + return FloatingPointExceptions;
>> + }
>>
>> /// Return the ValueType of the result of SETCC operations. Also used to
>> /// obtain the target's preferred type for the condition operand of SELECT and
>> @@ -1053,6 +1058,12 @@
>>...
2014 Sep 19
2
[LLVMdev] More careful treatment of floating point exceptions
Hi Sanjay,
Thanks, I saw this flag and it's definitely should be considered, but
it appeared to me to be static characteristic of target platform. I'm
not sure how appropriate it would be to change its value from a front-end.
It says "Has", while optional flag would rather say "Uses" meaning that
implementation cares about floating point exceptions.
Regards,
Sergey
2014 Sep 25
2
[LLVMdev] More careful treatment of floating point exceptions
...ndex e2ead47..d5dd0eb 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3402,7 +3402,6 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N1,
}
// Constant fold FP operations.
- bool HasFPExceptions = TLI->hasFloatingPointExceptions();
ConstantFPSDNode *N1CFP = dyn_cast<ConstantFPSDNode>(N1.getNode());
ConstantFPSDNode *N2CFP = dyn_cast<ConstantFPSDNode>(N2.getNode());
if (N1CFP) {
@@ -3416,30 +3415,32 @@ SDValue SelectionDAG::getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N1,
switch (Opcode) {...