search for: coreclasses

Displaying 7 results from an estimated 7 matches for "coreclasses".

2008 May 22
3
[LLVMdev] How to get a return type of a function with LLVM-C API
Hi LLVM-ers, I am trying to get a return type of a function(from bitcode file) with LLVM-C API, but there seems no appropriate API to do that. I've tried to do that with following code, ---- LLVMModuleRef M; LLVMMemoryBufferRef MemBuf; LLVMValueRef F; // Function LLVMTypeRef RetTy; char *ErrStr; // // -- Load shader module //
2008 May 22
0
[LLVMdev] How to get a return type of a function with LLVM-C API
Hi Syoyo, > I am trying to get a return type of a function(from bitcode file) with > LLVM-C API, but there seems no appropriate API to do that. From my memory, this info is stored in the function type, so you could look at the function's type and get the info there. Looking the the API docs [1], I find that there is a simple method on Function called getReturnType(). You should thus be
2017 Jul 20
3
Value
Thank you! I wanted to use the right part of the instruction , %a = alloca i32, align 4 - %a here , but I don't quite understand the difference between Instruction object and Value object of a, which is used further , and in this case : %1 = alloca i32, align 4 - I also wanted to use %1 and in this case the only possibility is Instruction object. 2017-07-20 15:32 GMT+02:00 Evgeny Astigeevich
2007 Oct 23
0
[LLVMdev] me being stupid: me vs the llvm codebase...
...e to add. — Gordon [1] http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ ELFWriter.cpp?view=markup http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ MachOWriter.cpp?view=markup [2] http://llvm.org/docs/WritingAnLLVMPass.html [3] http://llvm.org/docs/ProgrammersManual.html#coreclasses [4] http://llvm.org/docs/LangRef.html [5] http://llvm.org/docs/BitCodeFormat.html [6] http://llvm.org/docs/CodeGenerator.html [7] watch this space, currently under rapid construction: http:// llvm.org/docs/tutorial/ In particular, observe the HandleTopLevelExpression function in §3.3 "I...
2017 Jul 20
2
Value
...2. Now seems to be, that yes. 2017-07-20 16:43 GMT+02:00 Evgeny Astigeevich <Evgeny.Astigeevich at arm.com>: > You think in terms of the textual representation of IR and are trying to > work on IR in these terms. > > See: > > http://www.llvm.org/docs/ProgrammersManual.html#coreclasses > > http://llvm.org/doxygen/classllvm_1_1Value.html > > > In the LLVM representation Value is a thing which can be used as an > operand to instructions. In API there is no such thing as the named right > part. An instruction itself is a value which is produced as result of >...
2007 Oct 23
2
[LLVMdev] me being stupid: me vs the llvm codebase...
well, as it so seems I need to bother everyone on the list with my pointless newb crap, but here goes. maybe there was a FAQ for all this, but I missed it. well, I am not trying to demean LLVM in any way here, only trying to understand and evaluate things from my POV is all... sorry if at all I seem arrogant or condescending... well, running a linecounter, it is about 223 kloc (c++ ...), +
2007 Oct 23
2
[LLVMdev] me being stupid: me vs the llvm codebase...
...er... < — Gordon [1] http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ ELFWriter.cpp?view=markup http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ MachOWriter.cpp?view=markup [2] http://llvm.org/docs/WritingAnLLVMPass.html [3] http://llvm.org/docs/ProgrammersManual.html#coreclasses [4] http://llvm.org/docs/LangRef.html [5] http://llvm.org/docs/BitCodeFormat.html [6] http://llvm.org/docs/CodeGenerator.html [7] watch this space, currently under rapid construction: http:// llvm.org/docs/tutorial/ In particular, observe the HandleTopLevelExpression function in §3.3 "Impl...