Displaying 5 results from an estimated 5 matches for "somereg".
2014 Jan 28
2
[LLVMdev] Load Instruction that changes value of two registers
Hello,
I'm writing a backend for an architecture that only has LOAD Instructions
that first copy the old value of the target register in another register
and after that load the provided value into the register.
Example of an addition:
load a, reg1; // -> copies old value of reg1 in reg2 and loads value from a
into reg1
load b, reg1; // -> copies old value of reg1 in reg2 and loads
2013 Oct 22
1
[LLVMdev] System call miscompilation using the fast register allocator
...nd, !srcloc !0
SOL_SOCKET = 1 and TCP_CORK = 3, so so far so good. Although the inline
asm seems a bit odd: these are derived from bits/syscalls.h, and whilst
it's clear what they're *trying* to do, I'm not sure about this
construction:
call void asm sideeffect "", "{somereg}"(i64 X) nounwind
%1 = call i64 asm sideeffect "", "={somereg}"() nounwind
Intuitively this seems like whilst it instructs to put X in somereg and
then to read somereg, it doesn't say that somereg must remain the same
in the meantime!
Lowering to x86 using -optimize...
2009 Jun 04
1
[LLVMdev] assertion in LeakDetector
...lder BuildMI(MachineFunction &MF,
const TargetInstrDesc &TID,
unsigned DestReg)
I do the following :
void createInstrs(std::vector<MachineInstr *>& ilist)
{
Machine Instr *mi;
mi = BuildMI(MF, someTID, somereg);
ilist.push_back(mi);
mi = BuildMI(MF, someotherTID, someotherreg);
ilist.push_back(mi);
}
viud insertInto(MachineBasicBlock *BB, MachineBasicBlock::iterator II)
{
std::vector<MachineInstr *> temp;
createInstrs(temp);
for(unsigned i=0, e=temp.size(); i!=e; ++i)
BB->i...
2009 Jun 04
2
[LLVMdev] assertion in LeakDetector
I am seeing the following assertion in leak detector.
/llvm/lib/VMCore/LeakDetector.cpp:43:
void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
failed.
I am creating a list of instructions using BuildMI() and adding them
to a basic block using BB->insert(). I am seeing this
2009 Jun 04
0
[LLVMdev] assertion in LeakDetector
On Wed, Jun 3, 2009 at 5:10 PM, Manjunath Kudlur <keveman at gmail.com> wrote:
> I am seeing the following assertion in leak detector.
>
> /llvm/lib/VMCore/LeakDetector.cpp:43:
> void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
> void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
> failed.
>
> I am