Displaying 6 results from an estimated 6 matches for "g8rcclass".
2008 Jul 10
0
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
Looks good.
+ unsigned temp;
+ if (is64bit)
+ temp = RegInfo.createVirtualRegister(&PPC::GPRCRegClass);
+ else
+ temp = RegInfo.createVirtualRegister(&PPC::G8RCRegClass);
How about?
const TargetRegisterClass *RC = is64Bit ? &PPC:GPRCRegClass :
&PPC:G8RCRegClass;
unsigned TmpReg = RegInfo.createVirtualRegister(RC);
Evan
On Jul 9, 2008, at 9:16 AM, Gary
2008 Jul 10
2
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
...ried something like that yesterday:
const TargetRegisterClass *RC =
is64bit ? &PPC::GPRCRegClass : &PPC::G8RCRegClass;
but I kept getting this error no matter how I arranged it:
error: conditional expression between distinct pointer types
‘llvm::PPC::GPRCClass*’ and ‘llvm::PPC::G8RCClass*’ lacks a cast
Any suggestions?
Cheers,
Gary
--
http://gbenson.net/
2008 Jul 10
0
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
...y:
>
> const TargetRegisterClass *RC =
> is64bit ? &PPC::GPRCRegClass : &PPC::G8RCRegClass;
>
> but I kept getting this error no matter how I arranged it:
>
> error: conditional expression between distinct pointer types
> ‘llvm::PPC::GPRCClass*’ and ‘llvm::PPC::G8RCClass*’ lacks a cast
>
> Any suggestions?
>
> Cheers,
> Gary
>
> --
> http://gbenson.net/
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listi...
2008 Jul 10
2
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
...sterClass *RC =
> > is64bit ? &PPC::GPRCRegClass : &PPC::G8RCRegClass;
> >
> > but I kept getting this error no matter how I arranged it:
> >
> > error: conditional expression between distinct pointer types
> > ‘llvm::PPC::GPRCClass*’ and ‘llvm::PPC::G8RCClass*’ lacks a cast
> >
> > Any suggestions?
> >
> > Cheers,
> > Gary
> >
> > --
> > http://gbenson.net/
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu http://llvm....
2008 Jul 11
0
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
...>>> is64bit ? &PPC::GPRCRegClass : &PPC::G8RCRegClass;
>>>
>>> but I kept getting this error no matter how I arranged it:
>>>
>>> error: conditional expression between distinct pointer types
>>> ‘llvm::PPC::GPRCClass*’ and ‘llvm::PPC::G8RCClass*’ lacks a cast
>>>
>>> Any suggestions?
>>>
>>> Cheers,
>>> Gary
>>>
>>> --
>>> http://gbenson.net/
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at...
2008 Jul 09
2
[LLVMdev] Implementing llvm.atomic.cmp.swap.i32 on PowerPC
Ah, didn't see that, that's what comes of trying to do something at
5pm :) I attached an updated patch which creates a virtual register
instead of using R0. How does this look?
Cheers,
Gary
Dan Gohman wrote:
> PPCTargetLowering::EmitInstrWithCustomInserter has a reference
> to the current MachineFunction for other purposes. Can you use
> MachineFunction::getRegInfo instead?