search for: valreg

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

2004 Dec 02
3
[LLVMdev] Adding xadd instruction to X86
...ll int (<integer type>*, <integer type>)* %llvm.atomic_fetch_add_store(<integer type>* <pointer>, <integer type> <value>) I currently have the following code (PtrReg contains the pointer argument, ValReg the value arg, and TmpReg an unused register.): addDirectMem(BuildMI(BB, X86::XADD32mr, 4, TmpReg).addReg(TwoReg), ValReg); This fails the assertion isMem. Any help with this would be appreciated. Thanks, Brent
2004 Dec 02
0
[LLVMdev] Adding xadd instruction to X86
...d for the intrinsic function: > call int (<integer type>*, <integer type>)* > %llvm.atomic_fetch_add_store(<integer type>* <pointer>, > > <integer type> <value>) > > I currently have the following code (PtrReg contains the > pointer argument, ValReg the value arg, and TmpReg an unused > register.): > > addDirectMem(BuildMI(BB, X86::XADD32mr, 4, > TmpReg).addReg(TwoReg), ValReg); This is the problem. Try this: addDirectMem(BuildMI(BB, X86::XADD32mr, 4, TmpReg), ValReg).addReg(TwoReg); In particular, you want to add the memory ad...
2004 Dec 03
2
[LLVMdev] Adding xadd instruction to X86
...ction: >>call int (<integer type>*, <integer type>)* >>%llvm.atomic_fetch_add_store(<integer type>* <pointer>, >> >><integer type> <value>) >> >>I currently have the following code (PtrReg contains the >>pointer argument, ValReg the value arg, and TmpReg an unused >>register.): >> >>addDirectMem(BuildMI(BB, X86::XADD32mr, 4, >>TmpReg).addReg(TwoReg), ValReg); > > > This is the problem. Try this: > addDirectMem(BuildMI(BB, X86::XADD32mr, 4, TmpReg), ValReg).addReg(TwoReg); > >...