search for: debugpoint

Displaying 5 results from an estimated 5 matches for "debugpoint".

Did you mean: debugprint
2017 Jun 05
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...n: auto ty = val->getType(); cout << "val type:" << endl; ty->dump(); cout << "ptr type:" << endl; ptr->getType()->dump(); // Print memory ctx.EmitCall1("debugPointer", ptr); // Set class pointer auto c = ctx.bld.CreateExtractValue(val, 0, "class"); auto cp = ctx.bld.CreateConstGEP2_32(ty, ptr, 0, 0); auto cx = ctx.bld.CreatePtrToInt(cp, ctx.Int32Type()); ctx.EmitCall1("debugInt&qu...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...hy this sort of bug could sneak through. -- Sean Silva > > define { i8*, i32 } @"__anonToplevel/0"() prefix { i8*, i32 } (i32)* > @"XEP:__anonToplevel/0" { > entry: > %0 = call { i8*, i32 }* @identity({ i8*, i32 }* nonnull @foo) > %1 = call { i8*, i32 } @debugPointer({ i8*, i32 }* %0) > %2 = getelementptr { i8*, i32 }, { i8*, i32 }* %0, i32 0, i32 0 > %3 = ptrtoint { i8*, i32 }* %0 to i32 > %4 = call { i8*, i32 } @debugInt(i32 %3) > store i8* @FixnumClass, i8** %2, align 4 > %5 = getelementptr { i8*, i32 }, { i8*, i32 }* %0, i32 0, i3...
2017 Jun 06
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...8: 89 e0 movl %esp, %eax > a: c7 00 00 00 00 00 movl $0, (%eax) > 0000000c: IMAGE_REL_I386_DIR32 _foo > 10: e8 00 00 00 00 calll 0 <_setfoo+0x11> > 00000011: IMAGE_REL_I386_REL32 _debugPointer > 15: 89 e1 movl %esp, %ecx > 17: c7 01 00 00 00 00 movl $0, (%ecx) > 00000019: IMAGE_REL_I386_DIR32 _foo > 1d: 89 44 24 3c movl %eax, 60(%esp) > 21: 89 54 24 38 movl %edx, 56(%esp)...
2017 Jun 07
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
...p, %eax >>> a: c7 00 00 00 00 00 movl $0, (%eax) >>> 0000000c: IMAGE_REL_I386_DIR32 _foo >>> 10: e8 00 00 00 00 calll 0 <_setfoo+0x11> >>> 00000011: IMAGE_REL_I386_REL32 _debugPointer >>> 15: 89 e1 movl %esp, %ecx >>> 17: c7 01 00 00 00 00 movl $0, (%ecx) >>> 00000019: IMAGE_REL_I386_DIR32 _foo >>> 1d: 89 44 24 3c movl %eax, 60(%esp) >>> 21:...
2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Emitting calls to these functions (written in an .ll file linked in) works fine, and does the right thing. %Any = type { i8*, i32 } define dllexport void @setGlobal(%Any* %ptr, %Any %value) { store %Any %value, %Any* %ptr ret void } define dllexport %Any @getGlobal(%Any* %ptr) { %val = load %Any, %Any* %ptr ret %Any %val } Trying to replace the setGlobal call with what should be