Lines Matching full:create
34 // Create the add1 function entry and insert this entry into module M. The
45 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", Add1F);
55 // Create the add instruction, inserting it into the end of BB.
58 // Create the return instruction and add it to the basic block
59 ReturnInst::Create(M->getContext(), Add, BB);
66 // Create the fib function and insert it into module M. This function is said
75 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", FibF);
85 // Create the true_block.
86 BasicBlock *RetBB = BasicBlock::Create(M->getContext(), "return", FibF);
87 // Create an exit block.
88 BasicBlock* RecurseBB = BasicBlock::Create(M->getContext(), "recurse", FibF);
90 // Create the "if (arg < 2) goto exitbb"
92 BranchInst::Create(RetBB, RecurseBB, CondInst, BB);
94 // Create: ret int 1
95 ReturnInst::Create(M->getContext(), One, RetBB);
97 // create fib(x-1)
99 Value *CallFibX1 = CallInst::Create(FibF, Sub, "fibx1", RecurseBB);
101 // create fib(x-2)
103 Value *CallFibX2 = CallInst::Create(FibF, Sub, "fibx2", RecurseBB);
109 // Create the return instruction and add it to the basic block
110 ReturnInst::Create(M->getContext(), Sum, RecurseBB);
242 // Create some module to put our function into it.
248 // Now we create the JIT.
249 ExecutionEngine* EE = EngineBuilder(M).create();
254 // Create one thread for add1 and two threads for fib
262 std::cerr << "Could not create thread" << std::endl;
269 std::cerr << "Could not create thread" << std::endl;
276 std::cerr << "Could not create thread" << std::endl;