search for: hasnativesupportforoperation

Displaying 3 results from an estimated 3 matches for "hasnativesupportforoperation".

2005 Mar 17
1
[LLVMdev] FP Intrinsics
...rget. > > Yup, this is what we want to do. There are two places to implement > this: LegalizeDAG for the SelectionDAG isels, and > lib/CodeGen/IntrinsicLowering.cpp for other isels. Why not do it in SelectionDAGLowering::visitCall? The way I have implemented it now, this calls TLI.hasNativeSupportForOperation to see if it (for example FP_SQRT) is a legal operation on the target, and if not it sets RenameFn to "sin" and simply goes ahead with generating the call. This is a lot less code than doing it in LegalizeDAG, and also more efficient since it's not first lowered to an instruction an...
2005 Mar 16
0
[LLVMdev] FP Intrinsics
On Fri, 11 Mar 2005, Morten Ofstad wrote: > Hello, > > I am trying to make the FP intrinsics (abs, sin, cos, sqrt) I've added work > with the X86ISelPattern, but I'm having some difficulties understanding what > needs to be done. Cool. Here are a couple of requests: 1. I don't think we need an "llvm.abs" intrinsic at the llvm level. This can be
2005 Mar 11
5
[LLVMdev] FP Intrinsics
Hello, I am trying to make the FP intrinsics (abs, sin, cos, sqrt) I've added work with the X86ISelPattern, but I'm having some difficulties understanding what needs to be done. I assume I have to add new nodetypes for the FP instructions to SelectionDAGNodes.h, and make nodes for these in SelectionDAGLowering::visitCall when I find the intrinsic... The part I don't quite