Displaying 3 results from an estimated 3 matches for "get_mem".
2007 Aug 07
3
[LLVMdev] Un-inlining functions?
...ly simple.) One obvious application
for this would be to extract llvm.instrinsics, memcpy() et al from
equivalent loops.
e.g:
Original Function input to the un-inlining pass:
int foo(int a, int b)
{
return mem[a] & mem[b];
}
Pool of "primitive" functions:
int get_mem(int a)
{
return mem[a];
}
Output of un-inlining pass:
int foo(int a, int b)
{
return get_mem(a) & get_mem(b);
}
I don't suppose LLVM has a pass for this yet; however, has anybody
seen this done before? Can anybody point me to any existing work on
these...
2007 Aug 07
0
[LLVMdev] Un-inlining functions?
...to extract llvm.instrinsics, memcpy() et al from
> equivalent loops.
>
> e.g:
> Original Function input to the un-inlining pass:
> int foo(int a, int b)
> {
> return mem[a] & mem[b];
> }
>
> Pool of "primitive" functions:
> int get_mem(int a)
> {
> return mem[a];
> }
>
> Output of un-inlining pass:
> int foo(int a, int b)
> {
> return get_mem(a) & get_mem(b);
> }
>
> I don't suppose LLVM has a pass for this yet; however, has anybody
> seen this done b...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...life */
- printf("%s %s\n", memdisk_version, copyright);
+ if (!quiet)
+ printf("%s %s\n", memdisk_version, copyright);
if (!shdr->ramdisk_image || !shdr->ramdisk_size)
die("MEMDISK: No ramdisk image specified!\n");
@@ -795,7 +806,9 @@
get_mem(); /* Query BIOS for memory map */
parse_mem(); /* Parse memory map */
- printf("Ramdisk at 0x%08x, length 0x%08x\n", ramdisk_image, ramdisk_size);
+ if (!quiet)
+ printf("Ramdisk at 0x%08x, length 0x%08x\n", ramdisk_image,
+ ramdisk_s...