search for: some_func

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

2015 Jul 16
3
[LLVMdev] why LoopUnswitch pass does not constant fold conditional branch and merge blocks
Hi, I have a general question on LoopUnswtich pass. Consider the following IR snippet: define i32 @test(i1 %cond) { br label %loop_begin loop_begin: br i1 %cond, label %loop_body, label %loop_exit loop_body: br label %do_something do_something: call void @some_func() noreturn nounwind br label %loop_begin loop_exit: ret i32 0 } declare void @some_func() noreturn After running it through "opt -loop-unswitch -S", it unswitched loop on %cond and produced result like this: define i32 @test(i1 %cond) { br i1 %cond, label %..split_crit_edge, labe...
2017 Jul 26
2
armv7 pc-rel bx thumb instruction
Hi everyone, I'm working on some custom transformation passes that have the side-effect of significantly increasing the code size. While testing it on some larger, real-world code bases, I run into a linker error for armv7 thumb code. The particular error I get from ld64 is that "armv7 has no pc-rel bx thumb instruction." I've been able to reproduce the problem by taking a
2019 Oct 03
2
[RFC] Using basic block attributes to implement non-default floating point environment
On 10/2/19 5:12 PM, Hal Finkel wrote: On 10/1/19 12:35 AM, Serge Pavlov via llvm-dev wrote: Hi all, This proposal is aimed at support of floating point environment, in which some properties like rounding mode or exception behavior differ from those used by default. This include in particular support of 'pragma STDC FENV_ACCESS', 'pragma STDC FENV_ROUND' as well as some other
2017 Jul 26
2
armv7 pc-rel bx thumb instruction
...; thumbv7 bitcode file and cloning functions until the linker fails. > > Interesting. It looks like you've got a tail call from Thumb code to > ARM code. The linker would normally turn a BL into a BLX to make this > work, but it's (rightly) reporting that there's no "BX some_func" > instruction (you have to load the destination into a register and jump > there). > > If you have control over both functions you probably just want to > compile the destination in Thumb mode (there's hardly ever reason to > use ARM mode these days). But given your circ...
2012 Sep 16
3
Remaining syntax-check errors in libguestfs
...ptargs structs as having const char * string fields, eg: struct guestfs_add_domain_argv { //... const char *libvirturi; //... } I tried to change this so that the fields are plain 'char *' but the structs are const, but that doesn't work. ie. The following code would not work: some_func (const char *uri) { const struct guestfs_add_domain_argv optargs = { libvirturi = uri }; guestfs_add_domain_argv (g, dom, &optargs); } Apparently const-ness of a struct does not get inherited by fields inside it, probably because const-ness of a struct just indicates the pointer to the str...