Home | History | Annotate | Download | only in JIT

Lines Matching refs:Func2

331   Function *Func2 = Function::Create(FuncTy, Function::InternalLinkage,
332 "func2", M);
336 BasicBlock *Block2 = BasicBlock::Create(Context, "block2", Func2);
337 BasicBlock *True2 = BasicBlock::Create(Context, "cond_true", Func2);
338 BasicBlock *False2 = BasicBlock::Create(Context, "cond_false", Func2);
343 // Make Func1 call Func2(0) and Func3(0).
345 Builder.CreateCall(Func2, ConstantInt::getTrue(Context));
349 // void Func2(bool b) { if (b) { Func3(false); return; } return; }
351 Builder.CreateCondBr(Func2->arg_begin(), True2, False2);
358 // void Func3(bool b) { if (b) { Func2(false); return; } return; }
362 Builder.CreateCall(Func2, ConstantInt::getFalse(Context));
384 Function *Func2 = Function::Create(FuncTy, Function::InternalLinkage,
385 "func2", M);
387 BasicBlock *Block2 = BasicBlock::Create(Context, "block2", Func2);
391 Value *Result = Builder.CreateCall(Func2);
403 TheJIT->freeMachineCodeForFunction(Func2);
411 EXPECT_EQ(Func2->getNumUses(), 0u);
412 Func2->eraseFromParent();