Displaying 5 results from an estimated 5 matches for "getconvertact".
2010 Mar 19
2
[LLVMdev] getConvertAction/setConvertAction
...Node->getOperand(0).getValueType());
This seems incorrect as SINT_TO_FP should be querying the convert action, and not the Operation action.
i.e. it should be:
case ISD::SINT_TO_FP:
case ISD::UINT_TO_FP:
case ISD::FP_TO_SINT:
case ISD::FP_TO_UINT:
Action = TLI.getConvertAction(Node->getValueType(),
Node->getOperand(0).getValueType());
break;
case ISD::EXTRACT_VECTOR_ELT:
Action = TLI.getOperationAction(Node->getOpcode(),
Node->getOperand(0).getValueType());
Is this assum...
2010 Mar 19
0
[LLVMdev] getConvertAction/setConvertAction
...tValueType());
>
> This seems incorrect as SINT_TO_FP should be querying the convert action, and not the Operation action.
>
> i.e. it should be:
> case ISD::SINT_TO_FP:
> case ISD::UINT_TO_FP:
> case ISD::FP_TO_SINT:
> case ISD::FP_TO_UINT:
> Action = TLI.getConvertAction(Node->getValueType(),
> Node->getOperand(0).getValueType());
> break;
> case ISD::EXTRACT_VECTOR_ELT:
> Action = TLI.getOperationAction(Node->getOpcode(),
> Node->getOperand(0).getValue...
2009 May 21
0
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On Wed, May 20, 2009 at 4:55 PM, Dan Gohman <gohman at apple.com> wrote:
> Can you explain why you chose the approach of using a new pass?
> I pictured removing LegalizeDAG's type legalization code would
> mostly consist of finding all the places that use TLI.getTypeAction
> and just deleting code for handling its Expand and Promote. Are you
> anticipating something more
2009 May 20
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
On May 20, 2009, at 1:34 PM, Eli Friedman wrote:
> On Wed, May 20, 2009 at 1:19 PM, Eli Friedman
> <eli.friedman at gmail.com> wrote:
>
>> Per subject, this patch adding an additional pass to handle vector
>>
>> operations; the idea is that this allows removing the code from
>>
>> LegalizeDAG that handles illegal types, which should be a significant
2009 May 21
2
[LLVMdev] [PATCH] Add new phase to legalization to handle vector operations
...ode(ISD::FP_EXTEND, dl, Op.getValueType(), Tmp1);
- break;
- }
+ Tmp1 = LegalizeOp(Node->getOperand(0));
+ Result = DAG.UpdateNodeOperands(Result, Tmp1);
break;
}
case ISD::FP_ROUND: {
@@ -4226,67 +3515,27 @@
MVT SrcVT = Op.getOperand(0).getValueType();
if (TLI.getConvertAction(SrcVT, DstVT) == TargetLowering::Expand) {
if (SrcVT == MVT::ppcf128) {
- SDValue Lo;
- ExpandOp(Node->getOperand(0), Lo, Result);
- // Round it the rest of the way (e.g. to f32) if needed.
- if (DstVT!=MVT::f64)
- Result = DAG.getNode(ISD::FP_ROUND...