Displaying 4 results from an estimated 4 matches for "assertfail".
2011 Aug 19
2
[LLVMdev] How to halt a program
...2* %retval ; <i32> [#uses=1]
ret i32 %retval1
}
So, what is the LLVM code to insert the call "call void @exit(i32 1)
noreturn nounwind"? I thought about something like:
CallInst *abort = CallInst::Create(/*POINTER TO ABORT*/, ArrayRef<Value*>(),
Twine(), assertfail);
abort->addAttribute(~0, Attribute::NoReturn);
abort->addAttribute(~0, Attribute::NoUnwind);
However, I do not know what to fill up in /*POINTER TO ABORT*/. Can anyone
help me?
Thank you very much,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <...
2011 Aug 19
0
[LLVMdev] How to halt a program
...> [#uses=1]
> ret i32 %retval1
> }
>
> So, what is the LLVM code to insert the call "call void @exit(i32 1)
> noreturn nounwind"? I thought about something like:
>
> CallInst *abort = CallInst::Create(/*POINTER TO ABORT*/,
> ArrayRef<Value*>(), Twine(), assertfail);
> abort->addAttribute(~0, Attribute::NoReturn);
> abort->addAttribute(~0, Attribute::NoUnwind);
>
> However, I do not know what to fill up in /*POINTER TO ABORT*/. Can
> anyone help me?
Something like:
// Once, M = llvm::Module*, C = LLVMContext&:
FunctionType *AbortFTy...
2011 Sep 01
1
[LLVMdev] How to halt a program
...to the code:
// Create abort function
FunctionType *AbortFTy = FunctionType::get(Type::getVoidTy(*context),
false);
Function *AbortF = Function::Create(AbortFTy, GlobalValue::ExternalLinkage,
"abort", &M);
// Call to abort function
CallInst *abort = CallInst::Create(AbortF, Twine(), assertfail);
// Add atributes to the abort call instruction: no return and no unwind
abort->addAttribute(~0, Attribute::NoReturn);
abort->addAttribute(~0, Attribute::NoUnwind);
// Unreachable instruction
new UnreachableInst(*context, assertfail);
So, my bytecode now looks like this one below:
define...
2006 Dec 08
0
Wine release 0.9.27
...up of previous VarBstrCmp patch.
Chris Robinson (3):
wgl: Don't return prematurely if ConvertPixelFormatWGLtoGLX receives an invalid pixel format.
wgl: Fix for missing NV GLX extension.
wgl: Implement wglGetPixelFormatAttribfvARB.
Christian Gmeiner (1):
setupapi: Added AssertFail stub.
Clinton Stimpson (2):
riched20: Only send EN_CHANGE when it is supposed to be sent.
comctl32: Destroy header information on WM_NCDESTROY instead of WM_DESTROY.
Damjan Jovanovic (1):
ws2_32: Added tests for closesocket cancelling pending I/O operations.
Detlef Riekenberg (...