Displaying 3 results from an estimated 3 matches for "bfinisd".
2009 Apr 20
0
[LLVMdev] A few questions from a newbie
...by tblgen and the
> other is generated by tbglen following the pattern I specified. The
> compilation fails because of the two duplicated and conflicting cases.
This happened to me too. I stole a solution from the other targets -
create a wrapper node:
def BfinWrapper: SDNode<"BfinISD::Wrapper", SDTIntUnaryOp>;
Then custom lower ISD::GlobalAddress, converting it to a wrapped
TargetGlobalAddress:
SDValue
BlackfinTargetLowering::LowerGlobalAddress(SDValue Op, SelectionDAG
&DAG)
{
DebugLoc DL = Op.getDebugLoc();
GlobalValue *GV = cast<GlobalAddressSDNode&...
2009 Apr 20
2
[LLVMdev] A few questions from a newbie
Hello, I am learning to write a new backend for LLVM and have a few simple
questions.
1) What are the differences between 'constant' and 'targetconstant',
'globaladdress' and 'targetglobaladdress'? It is not clear from the document
when and which should be used.
2) On the processor I am working on, there is a 'move reg, mem_addr'
instruction.
When I try
2009 Apr 20
2
[LLVMdev] A few questions from a newbie
...other is generated by tbglen following the pattern I specified. The
> > compilation fails because of the two duplicated and conflicting cases.
>
> This happened to me too. I stole a solution from the other targets -
> create a wrapper node:
>
> def BfinWrapper: SDNode<"BfinISD::Wrapper", SDTIntUnaryOp>;
>
> Then custom lower ISD::GlobalAddress, converting it to a wrapped
> TargetGlobalAddress:
>
> SDValue
> BlackfinTargetLowering::LowerGlobalAddress(SDValue Op, SelectionDAG
> &DAG)
> {
> DebugLoc DL = Op.getDebugLoc();
> Glob...