Displaying 20 results from an estimated 101 matches for "_io_file".
Did you mean:
io_file
2012 Dec 25
2
[LLVMdev] [DragonEgg] Strange call to @"\01__isoc99_fscanf"
...89e2
; ModuleID = 'fileio.c'
target datalayout =
"e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
target triple = "x86_64-unknown-linux-gnu"
%struct._IO_FILE = type { i32, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*,
i8*, i8*, %struct._IO_marker*, %struct._IO_FILE*, i32, i32, i64, i16, i8,
[1 x i8], i8*, i64, i8*, i8*, i8*, i8*, i64, i32, [20 x i8] }
%struct._IO_marker = type { %struct._IO_marker*, %struct._IO_FILE*, i32, [4
x i8] }
@filename = unnamed...
2019 Jul 17
2
Help to understand LoadValueFromMemory
...d I have the first 4 bytes within Result.PointrVal but I cannot
see the other bytes.. Unfortunately also Result.AggregateVal has size 0.
Could you help me to understand why please?
The core part of the .ll is the following:
define i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct._IO_FILE*, align 8
%3 = alloca [40 x i8], align 16
store i32 0, i32* %1, align 4
%4 = call %struct._IO_FILE* @fopen(i8* getelementptr inbounds ([51 x i8],
[51 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x
i8]* @.str.1, i32 0, i32 0))
store %struct._IO_FILE* %4, %struct._IO_...
2006 Jun 30
1
[LLVMdev] instruction sequence
I'm trying to insert a call to fprintf(stderr, ...). I've looked at
the emitted assembly from llvm-gcc, and it consists of a LoadInst (of
stderr) and CallInst. It looks like this:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%tmp.1 = load %struct._IO_FILE** %stderr ; ty=%struct._IO_FILE*
%tmp.0 = call int (%struct._IO_FILE*, sbyte*, ...)* %fprintf(%struct._IO_FILE* %tmp.1, sbyte* getelementptr ([6 x sbyte]* %.str_1, int 0, int 0)) ; ty=int
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I essentially modified the code example from Ryan Lefever's...
2018 May 29
2
LLVM IR source line error
...urce
line is 614 rather than 612 or 613. Is it a bug or any other meaning
resulting in such case. Below is the IR. The first IR's source line if 614.
%call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 x
i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295
%0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg
!1295
%call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0), !dbg
!1295
%call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222 x
i8]* @.str.43, i32 0, i32 0)) #12, !dbg !1296
%1 = load %struct._IO_FILE*, %struct._IO...
2019 Jul 27
2
Efficient way to identify an instruction
Hi all,
I would like to understand if there is an efficient way to identify the
instruction that "created" a specific variable. For example,
define i32 @main() #0 {
%1 = alloca i32, align 4
%2 = alloca %struct._IO_FILE*, align 8
%3 = alloca [40 x i8], align 16
store i32 0, i32* %1, align 4
%4 = call %struct._IO_FILE* @fopen(i8* getelementptr inbounds ([51 x i8],
[51 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x
i8]* @.str.1, i32 0, i32 0))
store %struct._IO_FILE* %4, %struct._IO_...
2018 May 29
0
LLVM IR source line error
...you want.
> Is it a bug or any other meaning resulting in such case. Below is the IR.
> The first IR's source line if 614.
>
> %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221 x
> i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295
> %0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg
> !1295
> %call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0), !dbg
> !1295
> %call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222
> x i8]* @.str.43, i32 0, i32 0)) #12, !dbg !1296
> %1 = load...
2018 May 30
1
LLVM IR source line error
...it a bug or any other meaning resulting in such case. Below is the IR.
>> The first IR's source line if 614.
>>
>> %call = call i8* @gettext(i8* getelementptr inbounds ([221 x i8], [221
>> x i8]* @.str.42, i32 0 , i32 0)) #12, !dbg !1295
>> %0 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 4, !dbg
>> !1295
>> %call1 = call i32 @fputs_unlocked(i8* %call, %struct._IO_FILE* %0),
>> !dbg !1295
>> %call2 = call i8* @gettext(i8* getelementptr inbounds ([222 x i8], [222
>> x i8]* @.str.43, i32 0, i32 0)) #12, !dbg !12...
2012 Jan 26
0
[LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
On Thu, Jan 26, 2012 at 3:41 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> On Thu, 2012-01-26 at 15:36 -0600, Sebastian Pop wrote:
>> arm-none-linux-gnueabi
>
> Indeed, adding -ccc-host-triple arm-none-linux-gnueabi I also get
Minor remark: please use -target instead of -ccc-host-triple that is
now deprecated.
Thanks for looking at this testcase.
Sebastian
--
Qualcomm
2012 Jan 26
2
[LLVMdev] [llvm-commits] [PATCH] BasicBlock Autovectorization Pass
On Thu, 2012-01-26 at 15:36 -0600, Sebastian Pop wrote:
> arm-none-linux-gnueabi
Indeed, adding -ccc-host-triple arm-none-linux-gnueabi I also get
vectorization (even though I don't get vectorization when targeting
x86_64). I'll let you know what I find.
-Hal
--
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
2015 Sep 08
2
CallInst::getCalledFunction returns null?
I was wondering if someone could explain why CallInst::getCalledFunc behaves
the way it does.
For simple, direct call instructions in my IR, that method behaves just as
one would expect.
However, for instructions like this:
%25 = call i32 (%struct._IO_FILE*, ...)* bitcast (i32 (...)* @close to i32
> (%struct._IO_FILE*, ...)*)(%struct._IO_FILE* %24), !dbg !695
getCalledFunc returns null.
I know getCalledFunc is expected to return null
<http://llvm.org/docs/doxygen/html/classllvm_1_1CallInst.html#a0bcd4131e1a1d92215f5385b4e16cd2e>
on
indire...
2012 Oct 31
3
[LLVMdev] piping into lli broken on darwin
While testing llvm/polly svn on x86_64-apple-darwin10/11/12, I noticed that three darwin
specific polly-test regressions exist. At least part of these failures appear to be due
to lli on darwin not accepting piped input such that the test...
opt -load /sw/src/fink.build/llvm32-3.2-0/llvm-3.2/build/lib/LLVMPolly.so
-basicaa -polly-prepare -polly-region-simplify -O3
2014 Mar 07
2
[LLVMdev] Running VMKit's AOT Java Compiler
...Everything was compiler as suggested in the Getting Started tutorial, using
GNU Classpath. I try to run:
llcj ../../tools/trainer/Release+Asserts/HelloWorld.class
and get the following output:
Can not materiale a function in AOT mode.0 vmjc
0x0000000000f2cea5 llvm::sys::PrintStackTrace(_IO_FILE*) + 37
1 vmjc 0x0000000000f2d363
2 libpthread.so.0 0x00007f4fbbe83880
3 libc.so.6 0x00007f4fbb0e2389 gsignal + 57
4 libc.so.6 0x00007f4fbb0e3788 abort + 328
5 vmjc 0x000000000052f6f9
6 vmjc 0x00000000005739cc
7 vmjc...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
...serts/lib/LLVMHello.so -hello -time-passes <
bcfiles/hello.bc
...
(PRINT ALL THE FUNCTIONS, EVERYTHING IS FINE.)
...
wrong initalizer for intrinsic global variable
[0 x i8*] zeroinitializer
Broken module found, compilation aborted!
0 opt 0x00000000019ac447 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 38
1 opt 0x00000000019ac6ce
2 opt 0x00000000019ac112
3 libpthread.so.0 0x00007feee0c77cb0
4 libc.so.6 0x00007feedfca2425 gsignal + 53
5 libc.so.6 0x00007feedfca5b8b abort + 379
6 opt 0x0000000001953173
7 opt 0x0000000001953097
8...
2014 Mar 26
7
[LLVMdev] Lots of regtest failures on PPC64/Linux
Hi,
Recent trunk has a lot of failures on PPC64/Linux. One seems to be crash
with a backtrace like:
[ 3149s] --
[ 3149s] 0 libLLVMSupport.so 0x00003fff7ed0b864
llvm::sys::PrintStackTrace(_IO_FILE*) + 4294746876
[ 3149s] 1 libLLVMSupport.so 0x00003fff7ed0bb1c
[ 3149s] 2 libLLVMSupport.so 0x00003fff7ed0c520
[ 3149s] 3 linux-vdso64.so.1 0x00003fff7f7b0478 __kernel_sigtramp_rt64 + 0
[ 3149s] 4 libLLVMSupport.so 0x00003fff7ecfb448
llvm::sys::AtomicIncrement(unsigned int volatile*) + 42946850...
2015 Nov 24
2
How to create a sprintf call in IR
...alue* data = builder.CreateLoad(a); //load a, b, or c
Value* buf = builder.CreateLoad(buffer);
builder.CreateCall3((value*)sprintf, buf, str, data);
I want to test the sprintf function before adding the offset, but it didn't
work. The error information is "llvm.sys:PrintStackTrace(_IO_FILE)". Any
help will be appreciated.
Best,
Zhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151124/1c2ea425/attachment.html>
2014 Jan 09
2
[LLVMdev] InstVisitor usage problem
...ass<InstVisit>
X("visitInst","visit inst test");
}
then I use
opt -load /home/king/llvm/Release+Asserts/lib/instVisit.so
-visitInst<load.bc> /dev/null
to run the pass. but it appears such errors:
0 opt 0x00000000012700d2 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 34
1 opt 0x000000000126fd29
2 libpthread.so.0 0x00007f9ba0336bd0
3 instVisit.so 0x00007f9b9f33a200
4 opt 0x00000000012081ef
llvm::MPPassManager::runOnModule(llvm::Module&) + 655
5 opt 0x0000000001209f7f
llvm::PassManagerImpl::run(llvm::Module&...
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
......
> > (PRINT ALL THE FUNCTIONS, EVERYTHING IS FINE.)
> > ...
> > wrong initalizer for intrinsic global variable
> > [0 x i8*] zeroinitializer
> > Broken module found, compilation aborted!
> > 0 opt 0x00000000019ac447
> llvm::sys::PrintStackTrace(_IO_FILE*)
> > + 38
> > 1 opt 0x00000000019ac6ce
> > 2 opt 0x00000000019ac112
> > 3 libpthread.so.0 0x00007feee0c77cb0
> > 4 libc.so.6 0x00007feedfca2425 gsignal + 53
> > 5 libc.so.6 0x00007feedfca5b8b abort + 379
> > 6 opt...
2007 Aug 16
1
stdio
Hi,
I have experimentally done a branch of klibc with buffered stdio
support. It seems to add about 1.5K of code (for x86-64), which isn't
so bad, except that it means that *every* program now pulls in stdio,
which in turn depends on malloc() and some other pieces of code.
I have not yet implemented fscanf(), however, which may cause additional
bloat.
As of this point, I'm a bit
2015 Jun 02
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
...ty/llvm/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:839:
void llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType,
llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that
doesn't exist?"' failed.
0 clang 0x0000000001eaccd2 llvm::sys::PrintStackTrace(_IO_FILE*)
+ 34
1 clang 0x0000000001eaafd9
2 libpthread.so.0 0x00007fea3c820cb0
3 libc.so.6 0x00007fea3b6380d5 gsignal + 53
4 libc.so.6 0x00007fea3b63b83b abort + 379
5 libc.so.6 0x00007fea3b630d9e
6 libc.so.6 0x00007fea3b630e42
7 clang 0x00000000016b8252 l...
2013 Jun 26
1
[LLVMdev] VmKit build failure
...ocess
[vmkit ./mmtk/java]: Compiling 'mmtk-vmkit.jar'
vmjc: ctthread.cpp:141: void vmkit::StackWalker::operator++(): Assertion
`(addr < System::GetCallerOfAddress(addr)) && "Corrupted stack"' failed.
0 vmjc 0x00000000010caf72
llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1 vmjc 0x00000000010ca399
2 libpthread.so.0 0x00002acc36cabcb0
3 libc.so.6 0x00002acc37b0f425 gsignal + 53
4 libc.so.6 0x00002acc37b12b8b abort + 379
5 libc.so.6 0x00002acc37b080ee
6 libc.so.6 0x00002acc37b08192
7 vmjc 0x0000000000608e0b v...