Home
last modified time | relevance | path

Searched refs:ThenBlock (Results 1 – 21 of 21) sorted by relevance

/external/llvm-project/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp82 BasicBlock *ThenBlock, in fixupPHINodeForUnwindDest() argument
89 Phi.setIncomingBlock(Idx, ThenBlock); in fixupPHINodeForUnwindDest()
304 BasicBlock *ThenBlock = ThenTerm->getParent(); in versionCallSite() local
305 ThenBlock->setName("if.true.direct_targ"); in versionCallSite()
343 BasicBlock *ThenBlock = ThenTerm->getParent(); in versionCallSite() local
347 ThenBlock->setName("if.true.direct_targ"); in versionCallSite()
372 fixupPHINodeForUnwindDest(OrigInvoke, MergeBlock, ThenBlock, ElseBlock); in versionCallSite()
DBasicBlockUtils.cpp986 BasicBlock *ThenBlock) { in SplitBlockAndInsertIfThen() argument
992 bool CreateThenBlock = (ThenBlock == nullptr); in SplitBlockAndInsertIfThen()
994 ThenBlock = BasicBlock::Create(C, "", Head->getParent(), Tail); in SplitBlockAndInsertIfThen()
996 CheckTerm = new UnreachableInst(C, ThenBlock); in SplitBlockAndInsertIfThen()
998 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen()
1001 CheckTerm = ThenBlock->getTerminator(); in SplitBlockAndInsertIfThen()
1003 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen()
1017 DT->addNewBlock(ThenBlock, Head); in SplitBlockAndInsertIfThen()
1019 DT->changeImmediateDominator(ThenBlock, Head); in SplitBlockAndInsertIfThen()
1025 L->addBasicBlockToLoop(ThenBlock, *LI); in SplitBlockAndInsertIfThen()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp79 BasicBlock *ThenBlock, in fixupPHINodeForUnwindDest() argument
86 Phi.setIncomingBlock(Idx, ThenBlock); in fixupPHINodeForUnwindDest()
276 BasicBlock *ThenBlock = ThenTerm->getParent(); in versionCallSite() local
280 ThenBlock->setName("if.true.direct_targ"); in versionCallSite()
305 fixupPHINodeForUnwindDest(OrigInvoke, MergeBlock, ThenBlock, ElseBlock); in versionCallSite()
DBasicBlockUtils.cpp930 BasicBlock *ThenBlock) { in SplitBlockAndInsertIfThen() argument
936 bool CreateThenBlock = (ThenBlock == nullptr); in SplitBlockAndInsertIfThen()
938 ThenBlock = BasicBlock::Create(C, "", Head->getParent(), Tail); in SplitBlockAndInsertIfThen()
940 CheckTerm = new UnreachableInst(C, ThenBlock); in SplitBlockAndInsertIfThen()
942 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen()
945 CheckTerm = ThenBlock->getTerminator(); in SplitBlockAndInsertIfThen()
947 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen()
961 DT->addNewBlock(ThenBlock, Head); in SplitBlockAndInsertIfThen()
963 DT->changeImmediateDominator(ThenBlock, Head); in SplitBlockAndInsertIfThen()
969 L->addBasicBlockToLoop(ThenBlock, *LI); in SplitBlockAndInsertIfThen()
[all …]
/external/llvm/lib/Transforms/Utils/
DBasicBlockUtils.cpp623 BasicBlock *ThenBlock = BasicBlock::Create(C, "", Head->getParent(), Tail); in SplitBlockAndInsertIfThen() local
626 CheckTerm = new UnreachableInst(C, ThenBlock); in SplitBlockAndInsertIfThen()
628 CheckTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThen()
631 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/Tail, Cond); in SplitBlockAndInsertIfThen()
644 DT->addNewBlock(ThenBlock, Head); in SplitBlockAndInsertIfThen()
650 L->addBasicBlockToLoop(ThenBlock, *LI); in SplitBlockAndInsertIfThen()
665 BasicBlock *ThenBlock = BasicBlock::Create(C, "", Head->getParent(), Tail); in SplitBlockAndInsertIfThenElse() local
667 *ThenTerm = BranchInst::Create(Tail, ThenBlock); in SplitBlockAndInsertIfThenElse()
672 BranchInst::Create(/*ifTrue*/ThenBlock, /*ifFalse*/ElseBlock, Cond); in SplitBlockAndInsertIfThenElse()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h310 BasicBlock *ThenBlock = nullptr);
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DBasicBlockUtils.h333 BasicBlock *ThenBlock = nullptr);
/external/clang/lib/CodeGen/
DCGStmtOpenMP.cpp1607 auto *ThenBlock = CGF.createBasicBlock("simd.if.then"); in EmitOMPSimdDirective() local
1609 emitPreCond(CGF, S, S.getPreCond(), ThenBlock, ContBlock, in EmitOMPSimdDirective()
1611 CGF.EmitBlock(ThenBlock); in EmitOMPSimdDirective()
1966 auto *ThenBlock = createBasicBlock("omp.precond.then"); in EmitOMPWorksharingLoop() local
1968 emitPreCond(*this, S, S.getPreCond(), ThenBlock, ContBlock, in EmitOMPWorksharingLoop()
1970 EmitBlock(ThenBlock); in EmitOMPWorksharingLoop()
2649 auto *ThenBlock = createBasicBlock("omp.precond.then"); in EmitOMPDistributeLoop() local
2651 emitPreCond(*this, S, S.getPreCond(), ThenBlock, ContBlock, in EmitOMPDistributeLoop()
2653 EmitBlock(ThenBlock); in EmitOMPDistributeLoop()
3523 auto *ThenBlock = CGF.createBasicBlock("taskloop.if.then"); in EmitOMPTaskLoopBasedDirective() local
[all …]
DCGStmt.cpp607 llvm::BasicBlock *ThenBlock = createBasicBlock("if.then"); in EmitIfStmt() local
613 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, in EmitIfStmt()
617 EmitBlock(ThenBlock); in EmitIfStmt()
DCGOpenMPRuntime.cpp1910 auto ThenBlock = CGF.createBasicBlock("omp_if.then"); in emitOMPIfClause() local
1913 CGF.EmitBranchOnBoolExpr(Cond, ThenBlock, ElseBlock, /*TrueCount=*/0); in emitOMPIfClause()
1916 CGF.EmitBlock(ThenBlock); in emitOMPIfClause()
2057 auto *ThenBlock = CGF.createBasicBlock("omp_if.then"); in Enter() local
2060 CGF.Builder.CreateCondBr(CallBool, ThenBlock, ContBlock); in Enter()
2061 CGF.EmitBlock(ThenBlock); in Enter()
/external/llvm-project/polly/lib/CodeGen/
DBlockGenerators.cpp638 BasicBlock *ThenBlock = Branch->getSuccessor(0); in generateConditionalExecution() local
644 ThenBlock->setName(BlockName + "." + Subject + ".partial"); in generateConditionalExecution()
649 Builder.SetInsertPoint(ThenBlock, ThenBlock->getFirstInsertionPt()); in generateConditionalExecution()
/external/clang/lib/Analysis/
DCFG.cpp2221 CFGBlock *ThenBlock; in VisitIfStmt() local
2233 ThenBlock = addStmt(Then); in VisitIfStmt()
2235 if (!ThenBlock) { in VisitIfStmt()
2239 ThenBlock = createBlock(false); in VisitIfStmt()
2240 addSuccessor(ThenBlock, sv.get()); in VisitIfStmt()
2258 return VisitLogicalOperator(Cond, I, ThenBlock, ElseBlock).first; in VisitIfStmt()
2271 addSuccessor(Block, ThenBlock, /* isReachable = */ !KnownVal.isFalse()); in VisitIfStmt()
/external/llvm-project/clang/lib/CodeGen/
DCGStmtOpenMP.cpp2325 llvm::BasicBlock *ThenBlock = CGF.createBasicBlock("simd.if.then"); in emitOMPSimdRegion() local
2327 emitPreCond(CGF, S, S.getPreCond(), ThenBlock, ContBlock, in emitOMPSimdRegion()
2329 CGF.EmitBlock(ThenBlock); in emitOMPSimdRegion()
2900 llvm::BasicBlock *ThenBlock = createBasicBlock("omp.precond.then"); in EmitOMPWorksharingLoop() local
2902 emitPreCond(*this, S, S.getPreCond(), ThenBlock, ContBlock, in EmitOMPWorksharingLoop()
2904 EmitBlock(ThenBlock); in EmitOMPWorksharingLoop()
4648 llvm::BasicBlock *ThenBlock = createBasicBlock("omp.precond.then"); in EmitOMPDistributeLoop() local
4650 emitPreCond(*this, S, S.getPreCond(), ThenBlock, ContBlock, in EmitOMPDistributeLoop()
4652 EmitBlock(ThenBlock); in EmitOMPDistributeLoop()
6443 llvm::BasicBlock *ThenBlock = CGF.createBasicBlock("taskloop.if.then"); in EmitOMPTaskLoopBasedDirective() local
[all …]
DCGStmt.cpp715 llvm::BasicBlock *ThenBlock = createBasicBlock("if.then"); in EmitIfStmt() local
728 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, Count, LH); in EmitIfStmt()
731 EmitBlock(ThenBlock); in EmitIfStmt()
DCGOpenMPRuntimeGPU.cpp51 auto *ThenBlock = CGF.createBasicBlock("omp_if.then"); in Enter() local
54 CGF.Builder.CreateCondBr(CallBool, ThenBlock, ContBlock); in Enter()
55 CGF.EmitBlock(ThenBlock); in Enter()
DCGOpenMPRuntime.cpp2034 llvm::BasicBlock *ThenBlock = CGF.createBasicBlock("omp_if.then"); in emitIfClause() local
2037 CGF.EmitBranchOnBoolExpr(Cond, ThenBlock, ElseBlock, /*TrueCount=*/0); in emitIfClause()
2040 CGF.EmitBlock(ThenBlock); in emitIfClause()
2187 auto *ThenBlock = CGF.createBasicBlock("omp_if.then"); in Enter() local
2190 CGF.Builder.CreateCondBr(CallBool, ThenBlock, ContBlock); in Enter()
2191 CGF.EmitBlock(ThenBlock); in Enter()
/external/llvm-project/clang/lib/Analysis/
DCFG.cpp3009 CFGBlock *ThenBlock; in VisitIfStmt() local
3021 ThenBlock = addStmt(Then); in VisitIfStmt()
3023 if (!ThenBlock) { in VisitIfStmt()
3027 ThenBlock = createBlock(false); in VisitIfStmt()
3028 addSuccessor(ThenBlock, sv.get()); in VisitIfStmt()
3048 LastBlock = VisitLogicalOperator(Cond, I, ThenBlock, ElseBlock).first; in VisitIfStmt()
3061 addSuccessor(Block, ThenBlock, /* IsReachable = */ !KnownVal.isFalse()); in VisitIfStmt()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp2451 Ice::CfgNode *ThenBlock = getBranchBasicBlock(Values[0]); in ProcessRecord() local
2453 if (ThenBlock == nullptr || ElseBlock == nullptr) in ProcessRecord()
2456 Ice::InstBr::create(Func.get(), Cond, ThenBlock, ElseBlock)); in ProcessRecord()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp1987 BasicBlock *ThenBlock = ThenTerm->getParent(); in createPHI() local
1988 PHI->addIncoming(ValueIfTrue, ThenBlock); in createPHI()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp2927 BasicBlock *ThenBlock = ThenTerm->getParent(); in createPHI() local
2928 PHI->addIncoming(ValueIfTrue, ThenBlock); in createPHI()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp2988 BasicBlock *ThenBlock = ThenTerm->getParent(); in createPHI() local
2989 PHI->addIncoming(ValueIfTrue, ThenBlock); in createPHI()