From rspencer at reidspencer.com Thu Feb 15 22:40:20 2007 From: rspencer at reidspencer.com (rspencer at reidspencer.com) Date: Thu, 15 Feb 2007 22:40:20 -0800 Subject: [hlvm-commits] r448 - build hlvm/CodeGen Message-ID: <200702160640.l1G6eK43031014@server1.hlvm.org> Author: reid Date: 2007-02-15 22:40:19 -0800 (Thu, 15 Feb 2007) New Revision: 448 Log: More updates to support additional IR API changes in LLVM. Modified: build/codegen.py hlvm/CodeGen/LLVMEmitter.cpp hlvm/CodeGen/LLVMEmitter.h Modified: build/codegen.py =================================================================== --- build/codegen.py 2007-02-12 05:15:02 UTC (rev 447) +++ build/codegen.py 2007-02-16 06:40:19 UTC (rev 448) @@ -10,7 +10,6 @@ theAction = env.Action( "PATH='" + env['LLVM_bin'] + "' " + env['with_llvmgxx'] + env['CXXFLAGS'] + " -c -emit-llvm -x c++ " + src + " -o - | " + - env['with_llvmdis'] + " -o - | " + env['with_llvm2cpp'] + " " + env['LLVM2CPPFLAGS'] + " -o " + tgt ) env.Depends(tgt,env['with_llvm2cpp']) Modified: hlvm/CodeGen/LLVMEmitter.cpp =================================================================== --- hlvm/CodeGen/LLVMEmitter.cpp 2007-02-12 05:15:02 UTC (rev 447) +++ hlvm/CodeGen/LLVMEmitter.cpp 2007-02-16 06:40:19 UTC (rev 448) @@ -164,7 +164,8 @@ CallInst* call_hlvm_text_create(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_text_create(); - return new CallInst(F, args, (nm ? nm : "buffer"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "buffer"), + TheBlock); } Function* get_hlvm_text_delete() @@ -186,7 +187,8 @@ CallInst* call_hlvm_text_delete(const hlvm::ArgList& args) { Function* F = get_hlvm_text_delete(); - return new CallInst(F, args, "hlvm_text_delete", TheBlock); + return new CallInst(F, &args[0], args.size(), "hlvm_text_delete", + TheBlock); } Function* get_hlvm_text_to_buffer() @@ -207,7 +209,8 @@ CallInst* call_hlvm_text_to_buffer(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_text_to_buffer(); - return new CallInst(F, args, (nm ? nm : "buffer"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "buffer"), + TheBlock); } PointerType* get_hlvm_buffer() @@ -239,7 +242,8 @@ CallInst* call_hlvm_buffer_create(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_buffer_create(); - return new CallInst(F, args, (nm ? nm : "buffer"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "buffer"), + TheBlock); } Function* get_hlvm_buffer_delete() @@ -260,7 +264,7 @@ CallInst* call_hlvm_buffer_delete(const hlvm::ArgList& args) { Function* F = get_hlvm_buffer_delete(); - return new CallInst(F, args, "", TheBlock); + return new CallInst(F, &args[0], args.size(), "", TheBlock); } PointerType* get_hlvm_stream() @@ -292,7 +296,7 @@ CallInst* call_hlvm_stream_open(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_stream_open(); - return new CallInst(F, args, (nm ? nm : "stream"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "stream"), TheBlock); } Function* get_hlvm_stream_read() @@ -315,7 +319,7 @@ CallInst* call_hlvm_stream_read(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_stream_read(); - return new CallInst(F, args, (nm ? nm : "readlen"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "readlen"), TheBlock); } Function* get_hlvm_stream_write_buffer() @@ -337,7 +341,7 @@ CallInst* call_hlvm_stream_write_buffer(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_stream_write_buffer(); - return new CallInst(F, args, (nm ? nm : "writelen"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "writelen"), TheBlock); } Function* get_hlvm_stream_write_string() @@ -359,7 +363,7 @@ CallInst* call_hlvm_stream_write_string(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_stream_write_string(); - return new CallInst(F, args, (nm ? nm : "writelen"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "writelen"), TheBlock); } Function* get_hlvm_stream_write_text() @@ -381,7 +385,7 @@ CallInst* call_hlvm_stream_write_text(const hlvm::ArgList& args, const char* nm) { Function* F = get_hlvm_stream_write_text(); - return new CallInst(F, args, (nm ? nm : "writelen"), TheBlock); + return new CallInst(F, &args[0], args.size(), (nm ? nm : "writelen"), TheBlock); } Function* get_hlvm_stream_close() @@ -402,7 +406,7 @@ CallInst* call_hlvm_stream_close(const hlvm::ArgList& args) { Function* F = get_hlvm_stream_close(); - return new CallInst(F, args, "", TheBlock); + return new CallInst(F, &args[0], args.size(), "", TheBlock); } FunctionType* get_hlvm_program_signature() @@ -697,87 +701,88 @@ CallInst* call_hlvm_f32_ispinf(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_ispinf(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_ispinf(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_isninf(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_isninf(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_isninf(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_isnan(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_isnan(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_isnan(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_trunc(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_trunc(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_trunc(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_round(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_round(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_round(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_floor(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_floor(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_floor(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_ceiling(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_ceiling(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_ceiling(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_loge(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_loge(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_loge(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_log2(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_log2(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_log2(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_log10(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_log10(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_log10(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_squareroot(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_squareroot(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_squareroot(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_cuberoot(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_cuberoot(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_cuberoot(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_factorial(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_factorial(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_factorial(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_power(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_power(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_power(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_root(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_root(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_root(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_gcd(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_gcd(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_gcd(), &args[0], args.size(), "", TheBlock); } CallInst* call_hlvm_f32_lcm(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f32_lcm(), args, "", TheBlock); + return new CallInst(get_hlvm_f32_lcm(), &args[0], args.size(), "", + TheBlock); } Function* get_hlvm_f64_ispinf() @@ -1024,87 +1029,104 @@ CallInst* call_hlvm_f64_ispinf(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_ispinf(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_ispinf(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_isninf(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_isninf(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_isninf(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_isnan(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_isnan(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_isnan(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_trunc(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_trunc(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_trunc(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_round(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_round(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_round(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_floor(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_floor(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_floor(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_ceiling(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_ceiling(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_ceiling(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_loge(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_loge(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_loge(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_log2(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_log2(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_log2(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_log10(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_log10(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_log10(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_squareroot(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_squareroot(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_squareroot(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_cuberoot(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_cuberoot(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_cuberoot(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_factorial(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_factorial(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_factorial(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_power(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_power(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_power(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_root(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_root(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_root(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_gcd(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_gcd(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_gcd(), &args[0], args.size(), "", + TheBlock); } CallInst* call_hlvm_f64_lcm(const hlvm::ArgList& args) { - return new CallInst(get_hlvm_f64_lcm(), args, "", TheBlock); + return new CallInst(get_hlvm_f64_lcm(), &args[0], args.size(), "", + TheBlock); } /// @} @@ -1330,8 +1352,8 @@ return NumElts; } else if (const ArrayType *ATy = dyn_cast(Ty)) { return ATy->getNumElements() * getNumElements(ATy->getElementType()); - } else if (const PackedType* PTy = dyn_cast(Ty)) { - return PTy->getNumElements() * getNumElements(PTy->getElementType()); + } else if (const VectorType* VTy = dyn_cast(Ty)) { + return VTy->getNumElements() * getNumElements(VTy->getElementType()); } else hlvmAssert(!"Don't know how to count elements of this type"); return 0; @@ -1479,7 +1501,8 @@ hlvmAssert( srcPT->getElementType() == destTy ); ArgList idx; TwoZeroIndices(idx); - GetElementPtrInst* GEP = new GetElementPtrInst(src, idx, "",TheBlock); + GetElementPtrInst* GEP = + new GetElementPtrInst(src, &idx[0], 2, "", TheBlock); emitStore(GEP,dest); } else { // they are both first class types and the source is not a pointer, so @@ -1647,7 +1670,7 @@ newArgs.push_back(*I); // Generate the call - return new CallInst(F, newArgs, "", TheBlock); + return new CallInst(F, &newArgs[0], args.size(), "", TheBlock); } } @@ -1664,7 +1687,8 @@ cast(*I), (*I)->getName())); else newArgs.push_back(*I); - return new CallInst(F, newArgs, F->getName() + "_result", TheBlock); + return new CallInst(F, &newArgs[0], newArgs.size(), F->getName() + "_result", + TheBlock); } void @@ -1681,7 +1705,7 @@ args.push_back(size); args.push_back(ConstantInt::get(Type::Int32Ty, 0u)); LLVMEmitterImpl* emimp = static_cast(this); - new CallInst(emimp->get_llvm_memcpy(), args, "", TheBlock); + new CallInst(emimp->get_llvm_memcpy(), &args[0], args.size(), "", TheBlock); } /// Emit an llvm.memmove.i64 intrinsic @@ -1699,7 +1723,7 @@ args.push_back(size); args.push_back(ConstantInt::get(Type::Int32Ty, 0u)); LLVMEmitterImpl* emimp = static_cast(this); - new CallInst(emimp->get_llvm_memmove(), args, "", TheBlock); + new CallInst(emimp->get_llvm_memmove(), &args[0], args.size(), "", TheBlock); } /// Emit an llvm.memset.i64 intrinsic @@ -1717,7 +1741,8 @@ args.push_back(size); args.push_back(ConstantInt::get(Type::Int32Ty, 0u)); LLVMEmitterImpl* emimp = static_cast(this); - new CallInst(emimp->get_llvm_memset(), args, "", TheBlock); + new CallInst(emimp->get_llvm_memset(), &args[0], args.size(), "", + TheBlock); } CallInst* Modified: hlvm/CodeGen/LLVMEmitter.h =================================================================== --- hlvm/CodeGen/LLVMEmitter.h 2007-02-12 05:15:02 UTC (rev 447) +++ hlvm/CodeGen/LLVMEmitter.h 2007-02-16 06:40:19 UTC (rev 448) @@ -165,7 +165,7 @@ llvm::BasicBlock* getBlock() const { return TheBlock; } /// Get the name of the current block we're inserting into - const std::string& getBlockName() const { + std::string getBlockName() const { return TheBlock->getName(); } // Get the terminating instruction of the current block @@ -379,14 +379,15 @@ llvm::CallInst* emitCall(llvm::Function* F, const ArgList& args); llvm::GetElementPtrInst* emitGEP(llvm::Value* V, const ArgList& indices) { - return new llvm::GetElementPtrInst(V,indices,"",TheBlock); + return new llvm::GetElementPtrInst(V, &indices[0], indices.size(), "", + TheBlock); } llvm::GetElementPtrInst* emitGEP(llvm::Value* V, llvm::Value* index) { - ArgList indices; - indices.push_back(llvm::Constant::getNullValue(llvm::Type::Int32Ty)); - indices.push_back(index); - return new llvm::GetElementPtrInst(V,indices,"",TheBlock); + llvm::Value* indices[2]; + indices[0] = llvm::Constant::getNullValue(llvm::Type::Int32Ty); + indices[1] = index; + return new llvm::GetElementPtrInst(V, indices, 2, "",TheBlock); } /// This method implements an assignment of a src value to a pointer to a From rspencer at reidspencer.com Thu Feb 15 22:50:18 2007 From: rspencer at reidspencer.com (rspencer at reidspencer.com) Date: Thu, 15 Feb 2007 22:50:18 -0800 Subject: [hlvm-commits] r449 - build test/lib Message-ID: <200702160650.l1G6oIqt031064@server1.hlvm.org> Author: reid Date: 2007-02-15 22:50:18 -0800 (Thu, 15 Feb 2007) New Revision: 449 Log: Changes for gccld -> llvm-ld. This gets "make check" partially working. Modified: build/check.py build/configure.py build/hlvm.py test/lib/generate.exp test/lib/return0.exp Modified: build/check.py =================================================================== --- build/check.py 2007-02-16 06:40:19 UTC (rev 448) +++ build/check.py 2007-02-16 06:50:18 UTC (rev 449) @@ -38,7 +38,7 @@ outf.write('set APRU_lib "' + env['APRU_lib'] + '"\n') outf.write('set APRU_inc "' + env['APRU_inc'] + '"\n') outf.write('set llc "' + env['with_llc'] + '"\n') - outf.write('set gccld "' + env['with_gccld'] + '"\n') + outf.write('set llvm_ld "' + env['with_llvm_ld'] + '"\n') outf.write('set gxx "' + env['with_gxx'] + '"\n') outf.write('## All vars above are generated by scons. Do Not Edit!\n') outf.close() Modified: build/configure.py =================================================================== --- build/configure.py 2007-02-16 06:40:19 UTC (rev 448) +++ build/configure.py 2007-02-16 06:50:18 UTC (rev 449) @@ -244,7 +244,7 @@ conf.CheckProgram('llvm-as','with_llvmas',[conf.env['LLVM_bin']]) conf.CheckProgram('llvm2cpp','with_llvm2cpp',[conf.env['LLVM_bin']]) conf.CheckProgram('llvm-ar','with_llvmar',[conf.env['LLVM_bin']]) - conf.CheckProgram('gccld','with_gccld',[conf.env['LLVM_bin']]) + conf.CheckProgram('llvm-ld','with_llvm_ld',[conf.env['LLVM_bin']]) conf.CheckProgram('llvm-gcc','with_llvmgcc') conf.CheckProgram('llvm-g++','with_llvmgxx') conf.CheckProgram('gperf','with_gperf') Modified: build/hlvm.py =================================================================== --- build/hlvm.py 2007-02-16 06:40:19 UTC (rev 448) +++ build/hlvm.py 2007-02-16 06:50:18 UTC (rev 449) @@ -151,8 +151,8 @@ '/usr/local/bin/g++') opts.Add('with_llc','Specify where the LLVM compiler is located', '/usr/local/bin/llc') - opts.Add('with_gccld','Specify where the LLVM GCC Linker is located', - '/usr/local/bin/gccld') + opts.Add('with_llvm_ld','Specify where the LLVM GCC Linker is located', + '/usr/local/bin/llvm-ld') opts.Add('with_llvmdis','Specify where the LLVM disassembler is located', '/usr/local/bin/llvm-dis') opts.Add('with_llvmas','Specify where the LLVM assembler is located', Modified: test/lib/generate.exp =================================================================== --- test/lib/generate.exp 2007-02-16 06:40:19 UTC (rev 448) +++ test/lib/generate.exp 2007-02-16 06:50:18 UTC (rev 449) @@ -21,7 +21,7 @@ # #===------------------------------------------------------------------------===# proc hlvm-generate-test { complexity typecomplexity size seed } { - global srcdir subdir objdir tmpdir objrootdir llc gccld gxx APR_lib + global srcdir subdir objdir tmpdir objrootdir llc llvm_ld gxx APR_lib set outdir [file join $objdir $subdir] set gentc [ file join $objrootdir tools hlvm-gentestcase hlvm-gentestcase ] set compiler [file join $objrootdir tools hlvm-compiler hlvm-compiler ] @@ -47,9 +47,9 @@ if { $retval != 0 } { fail "$test: hlvm-compiler returned $retval:\n$msg" } else { - set retval [ catch { exec $gccld -o $testlinked $testbc $vmmain $rtlib } msg ] + set retval [ catch { exec $llvm_ld -o $testlinked $testbc $vmmain $rtlib } msg ] if { $retval != 0 } { - fail "$test: gccld returned $retval:\n$msg" + fail "$test: llvm-ld returned $retval:\n$msg" } else { set retval [ catch { exec $llc -fast -f -o $tests $testlinkedbc } msg ] if { $retval != 0 } { Modified: test/lib/return0.exp =================================================================== --- test/lib/return0.exp 2007-02-16 06:40:19 UTC (rev 448) +++ test/lib/return0.exp 2007-02-16 06:50:18 UTC (rev 449) @@ -21,7 +21,7 @@ # #===------------------------------------------------------------------------===# proc hlvm-ret-zero-test { pat forceret0 } { - global srcdir subdir objdir tmpdir objrootdir llc gccld gxx APR_lib + global srcdir subdir objdir tmpdir objrootdir llc llvm_ld gxx APR_lib set outdir [file join $objdir $subdir] set compiler [file join $objrootdir tools hlvm-compiler hlvm-compiler ] set source [file join $srcdir $subdir ] @@ -57,9 +57,9 @@ if { $retval != 0 } { fail "$test: hlvm-compiler returned $retval:\n$msg" } else { - set retval [ catch { exec $gccld -o $testlinked $testbc $vmmain $rtlib } msg ] + set retval [ catch { exec $llvm_ld -o $testlinked $testbc $vmmain $rtlib } msg ] if { $retval != 0 } { - fail "$test: gccld returned $retval:\n$msg" + fail "$test: llvm-ld returned $retval:\n$msg" } else { set retval [ catch { exec $llc -fast -f -o $tests $testlinkedbc } msg ] if { $retval != 0 } { From rspencer at reidspencer.com Thu Feb 15 23:40:04 2007 From: rspencer at reidspencer.com (rspencer at reidspencer.com) Date: Thu, 15 Feb 2007 23:40:04 -0800 Subject: [hlvm-commits] r450 - hlvm/CodeGen Message-ID: <200702160740.l1G7e4dS031297@server1.hlvm.org> Author: reid Date: 2007-02-15 23:40:04 -0800 (Thu, 15 Feb 2007) New Revision: 450 Log: Minor syntax tweak. Modified: hlvm/CodeGen/LLVMEmitter.cpp Modified: hlvm/CodeGen/LLVMEmitter.cpp =================================================================== --- hlvm/CodeGen/LLVMEmitter.cpp 2007-02-16 06:50:18 UTC (rev 449) +++ hlvm/CodeGen/LLVMEmitter.cpp 2007-02-16 07:40:04 UTC (rev 450) @@ -272,7 +272,7 @@ if (! hlvm_stream) { OpaqueType* opq = OpaqueType::get(); TheModule->addTypeName("hlvm_stream_obj", opq); - hlvm_stream= PointerType::get(opq); + hlvm_stream = PointerType::get(opq); TheModule->addTypeName("hlvm_stream", hlvm_stream); } return hlvm_stream; From rspencer at reidspencer.com Thu Feb 15 23:46:21 2007 From: rspencer at reidspencer.com (rspencer at reidspencer.com) Date: Thu, 15 Feb 2007 23:46:21 -0800 Subject: [hlvm-commits] r451 - in test: return0 xml2xml Message-ID: <200702160746.l1G7kLOt031335@server1.hlvm.org> Author: reid Date: 2007-02-15 23:46:21 -0800 (Thu, 15 Feb 2007) New Revision: 451 Log: Remove extra load operators now that the get operator implies a load. This gets most of the test suite working. Modified: test/return0/complement.hlx test/return0/continue.hlx test/return0/helloworld.hlx test/xml2xml/arithmetic.hlx test/xml2xml/autovar.hlx test/xml2xml/booleanops.hlx test/xml2xml/helloworld.hlx Modified: test/return0/complement.hlx =================================================================== --- test/return0/complement.hlx 2007-02-16 07:40:04 UTC (rev 450) +++ test/return0/complement.hlx 2007-02-16 07:46:21 UTC (rev 451) @@ -7,9 +7,7 @@ - - - + Modified: test/return0/continue.hlx =================================================================== --- test/return0/continue.hlx 2007-02-16 07:40:04 UTC (rev 450) +++ test/return0/continue.hlx 2007-02-16 07:46:21 UTC (rev 451) @@ -12,7 +12,10 @@