search for: cppgen

Displaying 15 results from an estimated 15 matches for "cppgen".

2014 Oct 09
3
[LLVMdev] Performance regression in the LiveIntevals phase
...e backend functionality, so we don't want to measure frontend compilation) llvm31/clang++ example.cpp -c -emit-llvm -o example.ir-31 llvm35/clang++ example.cpp -c -emit-llvm -o example.ir-35 Now you can run the actual performance measurements using llc: llvm31/llc -cppgen=program -o=5000.asm example.ir-31 llvm35/llc -cppgen=program -o=5000.asm example.ir-35 or you can also compile example.ir-31 with llvm3.5: llvm35/llc -cppgen=program -o=5000.asm example.ir-31 Our analysis had shown that the most of time is taken for generation of live intervals...
2010 Jun 28
2
[LLVMdev] vmkit and llvm 2.8
Hi All, Has vmkit been updated and tested with LLVM 2.8? I am unable to build it (llvm builds fine). There were some errors with Makefile.rules: $(Verb) $(LLVMAS) -f $(<F) -o - | $(LLC) -march=cpp -cppgen=contents -o $@ (march and cppgen options not recognized). What I cannot get past is this one (the warnings concern me as well): ... make[3]: Leaving directory `/home/zoewolk/RESEARCH/vmkit/lib/Mvm/Runtime' make[3]: Entering directory `/home/zoewolk/RESEARCH/vmkit/lib/Mvm/Compiler' llvm[3]:...
2013 Jul 29
2
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...Built Jul 14 2013 (15:39:08). Default target: x86_64-unknown-linux-gnu Host CPU: amdfam10 I have attached the input bc file before -O3 optimization :bzip2.del.bc.tgz I have attached the input bc file after -O3 optimization : bzip2.del.opt.bc.tgz Command to run on -O3 optimized file: llc -cppgen=program bzip2.del.opt.bc Call stack: llc: Value.cpp:307: void llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed. 0 llc 0x00000000014c716a llvm::sys::Pri...
2013 Mar 25
3
[LLVMdev] llvm2cpp attributes handling
...ne, We are using the llvm2cpp feature of LLVM in the VMKit project and there are some issues that I would like to point out. I made a tiny reproducible example here, to be clear: echo "int main() { return 0; };" > test.c && clang test.c -emit-llvm -c -o - | llc -march=cpp -cppgen=function -cppfor=main -o - This command is supposed to generate the C++ code to construct the main function in LLVM (see main_llvm2cpp.cc joined file). But an error occurs while generating the code (see stack trace below). It appears that an assertion is broken while treating attributes in the...
2013 Aug 02
2
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...Host CPU: amdfam10 >> >> >> I have attached the input bc file before -O3 optimization >> :bzip2.del.bc.tgz >> I have attached the input bc file after -O3 optimization : >> bzip2.del.opt.bc.tgz >> >> >> Command to run on -O3 optimized file: llc -cppgen=program >> bzip2.del.opt.bc >> >> Call stack: >> >> llc: Value.cpp:307: void >> llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion >> `New->getType() == getType() && "replaceAllUses of value with new >> value of different type!&q...
2013 Mar 25
0
[LLVMdev] llvm2cpp attributes handling
...2cpp feature of LLVM in the VMKit project and there are > some issues that I would like to point out. > > I made a tiny reproducible example here, to be clear: > > echo "int main() { return 0; };" > test.c && clang test.c -emit-llvm -c -o - > | llc -march=cpp -cppgen=function -cppfor=main -o - > > This command is supposed to generate the C++ code to construct the main > function in LLVM (see main_llvm2cpp.cc joined file). > But an error occurs while generating the code (see stack trace below). > > It appears that an assertion is broken while t...
2013 Aug 02
0
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...x86_64-unknown-linux-gnu > Host CPU: amdfam10 > > > I have attached the input bc file before -O3 optimization > :bzip2.del.bc.tgz > I have attached the input bc file after -O3 optimization : > bzip2.del.opt.bc.tgz > > > Command to run on -O3 optimized file: llc -cppgen=program > bzip2.del.opt.bc > > Call stack: > > llc: Value.cpp:307: void > llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion > `New->getType() == getType() && "replaceAllUses of value with new > value of different type!"' failed. > 0 llc...
2013 Aug 09
0
[LLVMdev] opt -O3 causes Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed
...;>> >>> I have attached the input bc file before -O3 optimization >>> :bzip2.del.bc.tgz >>> I have attached the input bc file after -O3 optimization : >>> bzip2.del.opt.bc.tgz >>> >>> >>> Command to run on -O3 optimized file: llc -cppgen=program >>> bzip2.del.opt.bc >>> >>> Call stack: >>> >>> llc: Value.cpp:307: void >>> llvm::Value::replaceAllUsesWith(llvm::Value*): Assertion >>> `New->getType() == getType() && "replaceAllUses of value with new >&gt...
2010 Jun 29
0
[LLVMdev] Fwd: vmkit and llvm 2.8
...m> Date: Mon, Jun 28, 2010 at 3:54 PM Subject: vmkit and llvm 2.8 To: llvmdev at cs.uiuc.edu Hi All, Has vmkit been updated and tested with LLVM 2.8? I am unable to build it (llvm builds fine). There were some errors with Makefile.rules: $(Verb) $(LLVMAS) -f $(<F) -o - | $(LLC) -march=cpp -cppgen=contents -o $@ (march and cppgen options not recognized). What I cannot get past is this one (the warnings concern me as well): ... make[3]: Leaving directory `/home/zoewolk/RESEARCH/vmkit/lib/Mvm/Runtime' make[3]: Entering directory `/home/zoewolk/RESEARCH/vmkit/lib/Mvm/Compiler' llvm[3]:...
2012 May 28
1
[LLVMdev] VMKIT: Error while producing LLVMruntime.inc (using llvm-as and llc)
...te wrong code for AttrListPtr AttrListPtr::get(ArrayRef< AttributeWithIndex >Attrs) http://llvm.org/doxygen/classllvm_1_1AttrListPtr.html#a3a19622d131e9f0d981398f54cf6acfc bellow you can see the faulty generated code llvm-as ./vmkit/lib/vmkit/Compiler/LLVMRuntime.ll -o - | llc -march=cpp -cppgen=contents -o - | grep 'AttrListPtr::get' func_llvm_sqrt_f64_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); func_llvm_sin_f64_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); func_llvm_cos_f64_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); func_llvm_memcpy_i32_PAL = AttrL...
2012 Mar 12
1
[LLVMdev] [cfe-dev] Compiling Multiple Files
James, Thanks. It wouldn't take the LTO option; however, I can get it to inline using -cppgen=inline. However, when I run clang the second time it gives me an error, stating that it expects a top level entity. I think I've run into this issue before. Any ideas? On Mon, Mar 12, 2012 at 11:30 AM, James Molloy <James.Molloy at arm.com> wrote: > Hi Ryan, > > I see. Well,...
2009 May 27
0
[LLVMdev] Wondering how best to run inlining on a single function.
On May 26, 2009, at 3:15 PM, Jeffrey Yasskin wrote: > In Unladen Swallow we (intend to) compile each function as we > determine it's hot. To "compile" a function means to translate it from > CPython bytecode to LLVM IR, optimize the IR using a > FunctionPassManager, and JIT the IR to machine code. We'd like to > include inlining among our optimizations. Currently
2009 May 26
3
[LLVMdev] Wondering how best to run inlining on a single function.
In Unladen Swallow we (intend to) compile each function as we determine it's hot. To "compile" a function means to translate it from CPython bytecode to LLVM IR, optimize the IR using a FunctionPassManager, and JIT the IR to machine code. We'd like to include inlining among our optimizations. Currently the Inliner is a CallGraphSCCPass, which can only be run by the
2012 Mar 12
0
[LLVMdev] [cfe-dev] Compiling Multiple Files
Hi Ryan, I see. Well, that shouldn't be an issue. If you link the bitcode files together with llvm-link you can then do several things: (1) Run clang on it as you normally would with -O3 for maximum inlining (2) Run 'llc' manually with -O3 and LTO, which will do the maximum link time optimisations. (3) Run 'opt' manually with -O3, LTO which will produce another bitcode file,
2012 Mar 12
2
[LLVMdev] [cfe-dev] Compiling Multiple Files
James, Sure. I want to inline functions in a C program that has no external node, or "main". So the "top" function is not main and there does not exist a main in the file. Thanks. On Mon, Mar 12, 2012 at 11:23 AM, James Molloy <James.Molloy at arm.com> wrote: > Hi Ryan, > > > Do you know if it's possible to inline functions without an external >