[vmkit-commits] [vmkit] r120128 - /vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc

Nicolas Geoffray nicolas.geoffray at lip6.fr
Wed Nov 24 14:06:34 PST 2010


Author: geoffray
Date: Wed Nov 24 16:06:34 2010
New Revision: 120128

URL: http://llvm.org/viewvc/llvm-project?rev=120128&view=rev
Log:
Re-generate.


Modified:
    vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc

Modified: vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc
URL: http://llvm.org/viewvc/llvm-project/vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc?rev=120128&r1=120127&r2=120128&view=diff
==============================================================================
--- vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc (original)
+++ vmkit/branches/precise/mmtk/config/copyms/MMTkInline.inc Wed Nov 24 16:06:34 2010
@@ -235,9 +235,10 @@
 
 StructTy_struct_mvm__Thread_fields.push_back(PointerTy_16);
 std::vector<const Type*>StructTy_struct_mvm__KnownFrame_fields;
+StructTy_struct_mvm__KnownFrame_fields.push_back(PointerTy_0);
+StructTy_struct_mvm__KnownFrame_fields.push_back(PointerTy_0);
 PATypeHolder PointerTy_18_fwd = OpaqueType::get(mod->getContext());
 StructTy_struct_mvm__KnownFrame_fields.push_back(PointerTy_18_fwd);
-StructTy_struct_mvm__KnownFrame_fields.push_back(PointerTy_0);
 StructType* StructTy_struct_mvm__KnownFrame = StructType::get(mod->getContext(), StructTy_struct_mvm__KnownFrame_fields, /*isPacked=*/false);
 mod->addTypeName("struct.mvm::KnownFrame", StructTy_struct_mvm__KnownFrame);
 
@@ -333,102 +334,22 @@
 
 PointerType* PointerTy_25 = PointerType::get(PointerTy_26, 0);
 
-std::vector<const Type*>StructTy_struct__IO_FILE_fields;
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-std::vector<const Type*>StructTy_struct__IO_marker_fields;
-PATypeHolder PointerTy_29_fwd = OpaqueType::get(mod->getContext());
-StructTy_struct__IO_marker_fields.push_back(PointerTy_29_fwd);
-PATypeHolder PointerTy_28_fwd = OpaqueType::get(mod->getContext());
-StructTy_struct__IO_marker_fields.push_back(PointerTy_28_fwd);
-StructTy_struct__IO_marker_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructType* StructTy_struct__IO_marker = StructType::get(mod->getContext(), StructTy_struct__IO_marker_fields, /*isPacked=*/false);
-mod->addTypeName("struct._IO_marker", StructTy_struct__IO_marker);
-
-PointerType* PointerTy_29 = PointerType::get(StructTy_struct__IO_marker, 0);
-cast<OpaqueType>(PointerTy_29_fwd.get())->refineAbstractTypeTo(PointerTy_29);
-PointerTy_29 = cast<PointerType>(PointerTy_29_fwd.get());
-
-
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_29);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_28_fwd);
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 16));
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 8));
-ArrayType* ArrayTy_30 = ArrayType::get(IntegerType::get(mod->getContext(), 8), 1);
-
-StructTy_struct__IO_FILE_fields.push_back(ArrayTy_30);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 64));
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(PointerTy_0);
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-StructTy_struct__IO_FILE_fields.push_back(IntegerType::get(mod->getContext(), 32));
-ArrayType* ArrayTy_31 = ArrayType::get(IntegerType::get(mod->getContext(), 8), 40);
-
-StructTy_struct__IO_FILE_fields.push_back(ArrayTy_31);
-StructType* StructTy_struct__IO_FILE = StructType::get(mod->getContext(), StructTy_struct__IO_FILE_fields, /*isPacked=*/false);
-mod->addTypeName("struct._IO_FILE", StructTy_struct__IO_FILE);
-
-PointerType* PointerTy_28 = PointerType::get(StructTy_struct__IO_FILE, 0);
-cast<OpaqueType>(PointerTy_28_fwd.get())->refineAbstractTypeTo(PointerTy_28);
-PointerTy_28 = cast<PointerType>(PointerTy_28_fwd.get());
-
-
-PointerType* PointerTy_32 = PointerType::get(PointerTy_28, 0);
-
-ArrayType* ArrayTy_34 = ArrayType::get(IntegerType::get(mod->getContext(), 8), 7);
-
-PointerType* PointerTy_33 = PointerType::get(ArrayTy_34, 0);
-
-std::vector<const Type*>FuncTy_36_args;
-FuncTy_36_args.push_back(PointerTy_28);
-FuncTy_36_args.push_back(PointerTy_0);
-FunctionType* FuncTy_36 = FunctionType::get(
- /*Result=*/IntegerType::get(mod->getContext(), 32),
- /*Params=*/FuncTy_36_args,
- /*isVarArg=*/true);
-
-PointerType* PointerTy_35 = PointerType::get(FuncTy_36, 0);
-
-std::vector<const Type*>FuncTy_38_args;
-FunctionType* FuncTy_38 = FunctionType::get(
- /*Result=*/Type::getVoidTy(mod->getContext()),
- /*Params=*/FuncTy_38_args,
- /*isVarArg=*/false);
+PointerType* PointerTy_28 = PointerType::get(PointerTy_0, 0);
 
-PointerType* PointerTy_37 = PointerType::get(FuncTy_38, 0);
+PointerType* PointerTy_29 = PointerType::get(PointerTy_27, 0);
 
-PointerType* PointerTy_39 = PointerType::get(PointerTy_0, 0);
-
-PointerType* PointerTy_40 = PointerType::get(PointerTy_27, 0);
-
-std::vector<const Type*>FuncTy_42_args;
-FuncTy_42_args.push_back(PointerTy_26);
-FuncTy_42_args.push_back(PointerTy_26);
-FuncTy_42_args.push_back(PointerTy_26);
-FuncTy_42_args.push_back(IntegerType::get(mod->getContext(), 32));
-FuncTy_42_args.push_back(IntegerType::get(mod->getContext(), 32));
-FunctionType* FuncTy_42 = FunctionType::get(
+std::vector<const Type*>FuncTy_31_args;
+FuncTy_31_args.push_back(PointerTy_26);
+FuncTy_31_args.push_back(PointerTy_26);
+FuncTy_31_args.push_back(PointerTy_26);
+FuncTy_31_args.push_back(IntegerType::get(mod->getContext(), 32));
+FuncTy_31_args.push_back(IntegerType::get(mod->getContext(), 32));
+FunctionType* FuncTy_31 = FunctionType::get(
  /*Result=*/PointerTy_26,
- /*Params=*/FuncTy_42_args,
+ /*Params=*/FuncTy_31_args,
  /*isVarArg=*/false);
 
-PointerType* PointerTy_41 = PointerType::get(FuncTy_42, 0);
+PointerType* PointerTy_30 = PointerType::get(FuncTy_31, 0);
 
 
 // Function Declarations
@@ -449,52 +370,8 @@
 }
 func_llvm_frameaddress->setAttributes(func_llvm_frameaddress_PAL);
 
-Function* func__ZN3mvm6Thread14printBacktraceEv = Function::Create(
- /*Type=*/FuncTy_17,
- /*Linkage=*/GlobalValue::ExternalLinkage,
- /*Name=*/"_ZN3mvm6Thread14printBacktraceEv", mod); // (external, no body)
-func__ZN3mvm6Thread14printBacktraceEv->setCallingConv(CallingConv::C);
-AttrListPtr func__ZN3mvm6Thread14printBacktraceEv_PAL;
-func__ZN3mvm6Thread14printBacktraceEv->setAttributes(func__ZN3mvm6Thread14printBacktraceEv_PAL);
-
-Function* func_fprintf = Function::Create(
- /*Type=*/FuncTy_36,
- /*Linkage=*/GlobalValue::ExternalLinkage,
- /*Name=*/"fprintf", mod); // (external, no body)
-func_fprintf->setCallingConv(CallingConv::C);
-AttrListPtr func_fprintf_PAL;
-{
- SmallVector<AttributeWithIndex, 4> Attrs;
- AttributeWithIndex PAWI;
- PAWI.Index = 1U; PAWI.Attrs = 0  | Attribute::NoAlias | Attribute::NoCapture;
- Attrs.push_back(PAWI);
- PAWI.Index = 2U; PAWI.Attrs = 0  | Attribute::NoAlias | Attribute::NoCapture;
- Attrs.push_back(PAWI);
- PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoUnwind;
- Attrs.push_back(PAWI);
- func_fprintf_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
- 
-}
-func_fprintf->setAttributes(func_fprintf_PAL);
-
-Function* func_abort = Function::Create(
- /*Type=*/FuncTy_38,
- /*Linkage=*/GlobalValue::ExternalLinkage,
- /*Name=*/"abort", mod); // (external, no body)
-func_abort->setCallingConv(CallingConv::C);
-AttrListPtr func_abort_PAL;
-{
- SmallVector<AttributeWithIndex, 4> Attrs;
- AttributeWithIndex PAWI;
- PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoReturn | Attribute::NoUnwind;
- Attrs.push_back(PAWI);
- func_abort_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
- 
-}
-func_abort->setAttributes(func_abort_PAL);
-
 Function* func_JnJVM_org_mmtk_utility_alloc_BumpPointer_allocSlow__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2II = Function::Create(
- /*Type=*/FuncTy_42,
+ /*Type=*/FuncTy_31,
  /*Linkage=*/GlobalValue::ExternalLinkage,
  /*Name=*/"JnJVM_org_mmtk_utility_alloc_BumpPointer_allocSlow__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2II", mod); 
 func_JnJVM_org_mmtk_utility_alloc_BumpPointer_allocSlow__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2II->setCallingConv(CallingConv::C);
@@ -512,46 +389,14 @@
 
 // Global Variable Declarations
 
-GlobalVariable* gvar_ptr_stderr = new GlobalVariable(/*Module=*/*mod, 
-/*Type=*/PointerTy_28,
-/*isConstant=*/false,
-/*Linkage=*/GlobalValue::ExternalLinkage,
-/*Initializer=*/0, 
-/*Name=*/"stderr");
-
-GlobalVariable* gvar_array__str14 = new GlobalVariable(/*Module=*/*mod, 
-/*Type=*/ArrayTy_34,
-/*isConstant=*/true,
-/*Linkage=*/GlobalValue::PrivateLinkage,
-/*Initializer=*/0, // has initializer, specified below
-/*Name=*/".str14");
-gvar_array__str14->setAlignment(1);
-
-GlobalVariable* gvar_array__str1246 = new GlobalVariable(/*Module=*/*mod, 
-/*Type=*/ArrayTy_34,
-/*isConstant=*/true,
-/*Linkage=*/GlobalValue::PrivateLinkage,
-/*Initializer=*/0, // has initializer, specified below
-/*Name=*/".str1246");
-gvar_array__str1246->setAlignment(1);
-
 // Constant Definitions
-ConstantInt* const_int32_43 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("0"), 10));
-ConstantInt* const_int32_44 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("2146435072"), 10));
-ConstantInt* const_int32_45 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("2"), 10));
-ConstantInt* const_int32_46 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("5"), 10));
-ConstantInt* const_int32_47 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("1"), 10));
-ConstantInt* const_int32_48 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("3"), 10));
-std::vector<Constant*> const_ptr_49_indices;
-const_ptr_49_indices.push_back(const_int32_43);
-const_ptr_49_indices.push_back(const_int32_43);
-Constant* const_ptr_49 = ConstantExpr::getGetElementPtr(gvar_array__str14, &const_ptr_49_indices[0], const_ptr_49_indices.size());
-std::vector<Constant*> const_ptr_50_indices;
-const_ptr_50_indices.push_back(const_int32_43);
-const_ptr_50_indices.push_back(const_int32_43);
-Constant* const_ptr_50 = ConstantExpr::getGetElementPtr(gvar_array__str1246, &const_ptr_50_indices[0], const_ptr_50_indices.size());
-ConstantInt* const_int32_51 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("41"), 10));
-ConstantInt* const_int32_52 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("-4"), 10));
+ConstantInt* const_int32_32 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("3"), 10));
+ConstantInt* const_int32_33 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("-4"), 10));
+ConstantInt* const_int32_34 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("0"), 10));
+ConstantInt* const_int32_35 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("2146435072"), 10));
+ConstantInt* const_int32_36 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("2"), 10));
+ConstantInt* const_int32_37 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("5"), 10));
+ConstantInt* const_int32_38 = ConstantInt::get(mod->getContext(), APInt(32, StringRef("1"), 10));
 
 // Global Variable Definitions
 
@@ -577,163 +422,100 @@
 Value* ptr_VT = args++;
 ptr_VT->setName("VT");
 
-BasicBlock* label_Java_org_j3_runtime_VM__1assert__Z_exit_i = BasicBlock::Create(mod->getContext(), "Java_org_j3_runtime_VM__1assert__Z.exit.i",func_gcmalloc,0);
-BasicBlock* label_bb_i1_i = BasicBlock::Create(mod->getContext(), "bb.i1.i",func_gcmalloc,0);
-BasicBlock* label_Java_org_j3_runtime_VM__1assert__Z_exit2_i = BasicBlock::Create(mod->getContext(), "Java_org_j3_runtime_VM__1assert__Z.exit2.i",func_gcmalloc,0);
+BasicBlock* label_entry = BasicBlock::Create(mod->getContext(), "entry",func_gcmalloc,0);
 BasicBlock* label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i = BasicBlock::Create(mod->getContext(), "JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2.exit.i.i.i",func_gcmalloc,0);
 BasicBlock* label_false_IFEQ_i_i_i = BasicBlock::Create(mod->getContext(), "false IFEQ.i.i.i",func_gcmalloc,0);
 BasicBlock* label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit = BasicBlock::Create(mod->getContext(), "JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2.exit",func_gcmalloc,0);
 
-// Block Java_org_j3_runtime_VM__1assert__Z.exit.i (label_Java_org_j3_runtime_VM__1assert__Z_exit_i)
-CallInst* ptr_53 = CallInst::Create(func_llvm_frameaddress, const_int32_43, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-ptr_53->setCallingConv(CallingConv::C);
-ptr_53->setTailCall(true);
-AttrListPtr ptr_53_PAL;
+// Block entry (label_entry)
+BinaryOperator* int32_39 = BinaryOperator::Create(Instruction::Add, int32_sz, const_int32_32, "", label_entry);
+BinaryOperator* int32_40 = BinaryOperator::Create(Instruction::And, int32_39, const_int32_33, "", label_entry);
+CallInst* ptr_41 = CallInst::Create(func_llvm_frameaddress, const_int32_34, "", label_entry);
+ptr_41->setCallingConv(CallingConv::C);
+ptr_41->setTailCall(true);
+AttrListPtr ptr_41_PAL;
 {
  SmallVector<AttributeWithIndex, 4> Attrs;
  AttributeWithIndex PAWI;
  PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoUnwind;
  Attrs.push_back(PAWI);
- ptr_53_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
+ ptr_41_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
  
 }
-ptr_53->setAttributes(ptr_53_PAL);
+ptr_41->setAttributes(ptr_41_PAL);
 
-CastInst* int32_54 = new PtrToIntInst(ptr_53, IntegerType::get(mod->getContext(), 32), "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-BinaryOperator* int32_55 = BinaryOperator::Create(Instruction::And, int32_54, const_int32_44, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-CastInst* ptr_56 = new IntToPtrInst(int32_55, PointerTy_4, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
+CastInst* int32_42 = new PtrToIntInst(ptr_41, IntegerType::get(mod->getContext(), 32), "", label_entry);
+BinaryOperator* int32_43 = BinaryOperator::Create(Instruction::And, int32_42, const_int32_35, "", label_entry);
+CastInst* ptr_44 = new IntToPtrInst(int32_43, PointerTy_4, "", label_entry);
+std::vector<Value*> ptr_45_indices;
+ptr_45_indices.push_back(const_int32_34);
+ptr_45_indices.push_back(const_int32_36);
+Instruction* ptr_45 = GetElementPtrInst::Create(ptr_44, ptr_45_indices.begin(), ptr_45_indices.end(), "", label_entry);
+LoadInst* int32_46 = new LoadInst(ptr_45, "", false, label_entry);
+CastInst* ptr_47 = new IntToPtrInst(int32_46, PointerTy_24, "", label_entry);
+GetElementPtrInst* ptr_48 = GetElementPtrInst::Create(ptr_47, const_int32_37, "", label_entry);
+CastInst* ptr_49 = new BitCastInst(ptr_48, PointerTy_25, "", label_entry);
+LoadInst* ptr_50 = new LoadInst(ptr_49, "", false, label_entry);
+GetElementPtrInst* ptr_51 = GetElementPtrInst::Create(ptr_50, const_int32_38, "", label_entry);
+CastInst* ptr_52 = new BitCastInst(ptr_51, PointerTy_25, "", label_entry);
+LoadInst* ptr_53 = new LoadInst(ptr_52, "", false, label_entry);
+CastInst* int32_54 = new PtrToIntInst(ptr_53, IntegerType::get(mod->getContext(), 32), "", label_entry);
+BinaryOperator* int32_55 = BinaryOperator::Create(Instruction::Add, int32_54, int32_40, "", label_entry);
+CastInst* ptr_56 = new IntToPtrInst(int32_55, PointerTy_26, "", label_entry);
 std::vector<Value*> ptr_57_indices;
-ptr_57_indices.push_back(const_int32_43);
-ptr_57_indices.push_back(const_int32_45);
-Instruction* ptr_57 = GetElementPtrInst::Create(ptr_56, ptr_57_indices.begin(), ptr_57_indices.end(), "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-LoadInst* int32_58 = new LoadInst(ptr_57, "", false, label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-CastInst* ptr_59 = new IntToPtrInst(int32_58, PointerTy_24, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-GetElementPtrInst* ptr_60 = GetElementPtrInst::Create(ptr_59, const_int32_46, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-CastInst* ptr_61 = new BitCastInst(ptr_60, PointerTy_25, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-LoadInst* ptr_62 = new LoadInst(ptr_61, "", false, label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-GetElementPtrInst* ptr_63 = GetElementPtrInst::Create(ptr_62, const_int32_47, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-CastInst* ptr_64 = new BitCastInst(ptr_63, PointerTy_25, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-LoadInst* ptr_65 = new LoadInst(ptr_64, "", false, label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-CastInst* int32_66 = new PtrToIntInst(ptr_65, IntegerType::get(mod->getContext(), 32), "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-BinaryOperator* int32_67 = BinaryOperator::Create(Instruction::And, int32_66, const_int32_48, "", label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-ICmpInst* int1_68 = new ICmpInst(*label_Java_org_j3_runtime_VM__1assert__Z_exit_i, ICmpInst::ICMP_EQ, int32_67, const_int32_43, "");
-BranchInst::Create(label_Java_org_j3_runtime_VM__1assert__Z_exit2_i, label_bb_i1_i, int1_68, label_Java_org_j3_runtime_VM__1assert__Z_exit_i);
-
-// Block bb.i1.i (label_bb_i1_i)
-CastInst* ptr_70 = new IntToPtrInst(int32_55, PointerTy_13, "", label_bb_i1_i);
-CallInst* void_71 = CallInst::Create(func__ZN3mvm6Thread14printBacktraceEv, ptr_70, "", label_bb_i1_i);
-void_71->setCallingConv(CallingConv::C);
-void_71->setTailCall(true);
-AttrListPtr void_71_PAL;
-{
- SmallVector<AttributeWithIndex, 4> Attrs;
- AttributeWithIndex PAWI;
- PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoUnwind;
- Attrs.push_back(PAWI);
- void_71_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
- 
-}
-void_71->setAttributes(void_71_PAL);
-
-LoadInst* ptr_72 = new LoadInst(gvar_ptr_stderr, "", false, label_bb_i1_i);
-std::vector<Value*> int32_73_params;
-int32_73_params.push_back(ptr_72);
-int32_73_params.push_back(const_ptr_49);
-int32_73_params.push_back(const_ptr_50);
-int32_73_params.push_back(const_int32_51);
-CallInst* int32_73 = CallInst::Create(func_fprintf, int32_73_params.begin(), int32_73_params.end(), "", label_bb_i1_i);
-int32_73->setCallingConv(CallingConv::C);
-int32_73->setTailCall(true);
-AttrListPtr int32_73_PAL;
-{
- SmallVector<AttributeWithIndex, 4> Attrs;
- AttributeWithIndex PAWI;
- PAWI.Index = 1U; PAWI.Attrs = 0  | Attribute::NoAlias;
- Attrs.push_back(PAWI);
- PAWI.Index = 2U; PAWI.Attrs = 0  | Attribute::NoAlias;
- Attrs.push_back(PAWI);
- PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoUnwind;
- Attrs.push_back(PAWI);
- int32_73_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
- 
-}
-int32_73->setAttributes(int32_73_PAL);
-
-CallInst* void_74 = CallInst::Create(func_abort, "", label_bb_i1_i);
-void_74->setCallingConv(CallingConv::C);
-void_74->setTailCall(true);
-AttrListPtr void_74_PAL;
-{
- SmallVector<AttributeWithIndex, 4> Attrs;
- AttributeWithIndex PAWI;
- PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoReturn | Attribute::NoUnwind;
- Attrs.push_back(PAWI);
- void_74_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
- 
-}
-void_74->setAttributes(void_74_PAL);
-
-new UnreachableInst(mod->getContext(), label_bb_i1_i);
-
-// Block Java_org_j3_runtime_VM__1assert__Z.exit2.i (label_Java_org_j3_runtime_VM__1assert__Z_exit2_i)
-BinaryOperator* int32_76 = BinaryOperator::Create(Instruction::Add, int32_sz, const_int32_48, "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-BinaryOperator* int32_77 = BinaryOperator::Create(Instruction::And, int32_76, const_int32_52, "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-BinaryOperator* int32_78 = BinaryOperator::Create(Instruction::Add, int32_66, int32_77, "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-CastInst* ptr_79 = new IntToPtrInst(int32_78, PointerTy_26, "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-std::vector<Value*> ptr_80_indices;
-ptr_80_indices.push_back(const_int32_47);
-ptr_80_indices.push_back(const_int32_47);
-Instruction* ptr_80 = GetElementPtrInst::Create(ptr_62, ptr_80_indices.begin(), ptr_80_indices.end(), "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-LoadInst* ptr_81 = new LoadInst(ptr_80, "", false, label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-CastInst* ptr_82 = new BitCastInst(ptr_81, PointerTy_26, "", label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
-ICmpInst* int1_83 = new ICmpInst(*label_Java_org_j3_runtime_VM__1assert__Z_exit2_i, ICmpInst::ICMP_UGT, ptr_79, ptr_82, "");
-BranchInst::Create(label_false_IFEQ_i_i_i, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i, int1_83, label_Java_org_j3_runtime_VM__1assert__Z_exit2_i);
+ptr_57_indices.push_back(const_int32_38);
+ptr_57_indices.push_back(const_int32_38);
+Instruction* ptr_57 = GetElementPtrInst::Create(ptr_50, ptr_57_indices.begin(), ptr_57_indices.end(), "", label_entry);
+LoadInst* ptr_58 = new LoadInst(ptr_57, "", false, label_entry);
+CastInst* ptr_59 = new BitCastInst(ptr_58, PointerTy_26, "", label_entry);
+ICmpInst* int1_60 = new ICmpInst(*label_entry, ICmpInst::ICMP_UGT, ptr_56, ptr_59, "");
+BranchInst::Create(label_false_IFEQ_i_i_i, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i, int1_60, label_entry);
 
 // Block JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2.exit.i.i.i (label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i)
-std::vector<Value*> ptr_85_indices;
-ptr_85_indices.push_back(const_int32_47);
-ptr_85_indices.push_back(const_int32_43);
-Instruction* ptr_85 = GetElementPtrInst::Create(ptr_62, ptr_85_indices.begin(), ptr_85_indices.end(), "", label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
-CastInst* ptr__c_i_i_i = new IntToPtrInst(int32_78, PointerTy_27, ".c.i.i.i", label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
- new StoreInst(ptr__c_i_i_i, ptr_85, false, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
+std::vector<Value*> ptr_62_indices;
+ptr_62_indices.push_back(const_int32_38);
+ptr_62_indices.push_back(const_int32_34);
+Instruction* ptr_62 = GetElementPtrInst::Create(ptr_50, ptr_62_indices.begin(), ptr_62_indices.end(), "", label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
+CastInst* ptr__c_i_i_i = new IntToPtrInst(int32_55, PointerTy_27, ".c.i.i.i", label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
+ new StoreInst(ptr__c_i_i_i, ptr_62, false, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
 BranchInst::Create(label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
 
 // Block false IFEQ.i.i.i (label_false_IFEQ_i_i_i)
-std::vector<Value*> ptr_88_params;
-ptr_88_params.push_back(ptr_62);
-ptr_88_params.push_back(ptr_65);
-ptr_88_params.push_back(ptr_79);
-ptr_88_params.push_back(const_int32_43);
-ptr_88_params.push_back(const_int32_43);
-CallInst* ptr_88 = CallInst::Create(func_JnJVM_org_mmtk_utility_alloc_BumpPointer_allocSlow__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2II, ptr_88_params.begin(), ptr_88_params.end(), "", label_false_IFEQ_i_i_i);
-ptr_88->setCallingConv(CallingConv::C);
-ptr_88->setTailCall(true);
-AttrListPtr ptr_88_PAL;
+std::vector<Value*> ptr_65_params;
+ptr_65_params.push_back(ptr_50);
+ptr_65_params.push_back(ptr_53);
+ptr_65_params.push_back(ptr_56);
+ptr_65_params.push_back(const_int32_34);
+ptr_65_params.push_back(const_int32_34);
+CallInst* ptr_65 = CallInst::Create(func_JnJVM_org_mmtk_utility_alloc_BumpPointer_allocSlow__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2II, ptr_65_params.begin(), ptr_65_params.end(), "", label_false_IFEQ_i_i_i);
+ptr_65->setCallingConv(CallingConv::C);
+ptr_65->setTailCall(true);
+AttrListPtr ptr_65_PAL;
 {
  SmallVector<AttributeWithIndex, 4> Attrs;
  AttributeWithIndex PAWI;
  PAWI.Index = 4294967295U; PAWI.Attrs = 0  | Attribute::NoUnwind;
  Attrs.push_back(PAWI);
- ptr_88_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
+ ptr_65_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end());
  
 }
-ptr_88->setAttributes(ptr_88_PAL);
+ptr_65->setAttributes(ptr_65_PAL);
 
 BranchInst::Create(label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit, label_false_IFEQ_i_i_i);
 
 // Block JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2.exit (label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit)
-PHINode* ptr_90 = PHINode::Create(PointerTy_26, "", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
-ptr_90->reserveOperandSpace(2);
-ptr_90->addIncoming(ptr_65, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
-ptr_90->addIncoming(ptr_88, label_false_IFEQ_i_i_i);
-
-std::vector<Value*> ptr_91_indices;
-ptr_91_indices.push_back(const_int32_43);
-ptr_91_indices.push_back(const_int32_43);
-Instruction* ptr_91 = GetElementPtrInst::Create(ptr_90, ptr_91_indices.begin(), ptr_91_indices.end(), "", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
+PHINode* ptr_67 = PHINode::Create(PointerTy_26, "", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
+ptr_67->reserveOperandSpace(2);
+ptr_67->addIncoming(ptr_53, label_JnJVM_org_mmtk_utility_alloc_Allocator_fillAlignmentGap__Lorg_vmmagic_unboxed_Address_2Lorg_vmmagic_unboxed_Address_2_exit_i_i_i);
+ptr_67->addIncoming(ptr_65, label_false_IFEQ_i_i_i);
+
+std::vector<Value*> ptr_68_indices;
+ptr_68_indices.push_back(const_int32_34);
+ptr_68_indices.push_back(const_int32_34);
+Instruction* ptr_68 = GetElementPtrInst::Create(ptr_67, ptr_68_indices.begin(), ptr_68_indices.end(), "", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
 CastInst* ptr__c_i = new BitCastInst(ptr_VT, PointerTy_27, ".c.i", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
- new StoreInst(ptr__c_i, ptr_91, false, label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
-CastInst* ptr_tmp1 = new BitCastInst(ptr_90, PointerTy_0, "tmp1", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
+ new StoreInst(ptr__c_i, ptr_68, false, label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
+CastInst* ptr_tmp1 = new BitCastInst(ptr_67, PointerTy_0, "tmp1", label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
 ReturnInst::Create(mod->getContext(), ptr_tmp1, label_JnJVM_org_j3_bindings_Bindings_gcmalloc__ILorg_vmmagic_unboxed_ObjectReference_2_exit);
 return func_gcmalloc;
 }





More information about the vmkit-commits mailing list