Home
last modified time | relevance | path

Searched refs:CGP (Results 1 – 25 of 43) sorted by relevance

12

/external/llvm-project/llvm/test/CodeGen/AMDGPU/GlobalISel/
Dsrem.i32.ll3 …e-disable-idiv-expansion=0 -mtriple=amdgcn-amd-amdpal < %s | FileCheck -check-prefixes=CHECK,CGP %s
38 ; CGP-LABEL: v_srem_i32:
39 ; CGP: ; %bb.0:
40 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
41 ; CGP-NEXT: v_ashrrev_i32_e32 v2, 31, v0
42 ; CGP-NEXT: v_ashrrev_i32_e32 v3, 31, v1
43 ; CGP-NEXT: v_add_i32_e32 v0, vcc, v0, v2
44 ; CGP-NEXT: v_add_i32_e32 v1, vcc, v1, v3
45 ; CGP-NEXT: v_xor_b32_e32 v0, v0, v2
46 ; CGP-NEXT: v_xor_b32_e32 v1, v1, v3
[all …]
Dudiv.i32.ll3 …e-disable-idiv-expansion=0 -mtriple=amdgcn-amd-amdpal < %s | FileCheck -check-prefixes=CHECK,CGP %s
32 ; CGP-LABEL: v_udiv_i32:
33 ; CGP: ; %bb.0:
34 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
35 ; CGP-NEXT: v_cvt_f32_u32_e32 v2, v1
36 ; CGP-NEXT: v_sub_i32_e32 v3, vcc, 0, v1
37 ; CGP-NEXT: v_rcp_f32_e32 v2, v2
38 ; CGP-NEXT: v_mul_f32_e32 v2, 0x4f7ffffe, v2
39 ; CGP-NEXT: v_cvt_u32_f32_e32 v2, v2
40 ; CGP-NEXT: v_mul_lo_u32 v3, v3, v2
[all …]
Dsdiv.i32.ll3 …e-disable-idiv-expansion=0 -mtriple=amdgcn-amd-amdpal < %s | FileCheck -check-prefixes=CHECK,CGP %s
41 ; CGP-LABEL: v_sdiv_i32:
42 ; CGP: ; %bb.0:
43 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
44 ; CGP-NEXT: v_ashrrev_i32_e32 v2, 31, v0
45 ; CGP-NEXT: v_ashrrev_i32_e32 v3, 31, v1
46 ; CGP-NEXT: v_xor_b32_e32 v4, v2, v3
47 ; CGP-NEXT: v_add_i32_e32 v0, vcc, v0, v2
48 ; CGP-NEXT: v_add_i32_e32 v1, vcc, v1, v3
49 ; CGP-NEXT: v_xor_b32_e32 v0, v0, v2
[all …]
Durem.i32.ll3 …e-disable-idiv-expansion=0 -mtriple=amdgcn-amd-amdpal < %s | FileCheck -check-prefixes=CHECK,CGP %s
30 ; CGP-LABEL: v_urem_i32:
31 ; CGP: ; %bb.0:
32 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
33 ; CGP-NEXT: v_cvt_f32_u32_e32 v2, v1
34 ; CGP-NEXT: v_sub_i32_e32 v3, vcc, 0, v1
35 ; CGP-NEXT: v_rcp_f32_e32 v2, v2
36 ; CGP-NEXT: v_mul_f32_e32 v2, 0x4f7ffffe, v2
37 ; CGP-NEXT: v_cvt_u32_f32_e32 v2, v2
38 ; CGP-NEXT: v_mul_lo_u32 v3, v3, v2
[all …]
Durem.i64.ll3 …l-fp-math-f32=preserve-sign -mattr=+mad-mac-f32-insts < %s | FileCheck -check-prefixes=CHECK,CGP %s
618 ; CGP-LABEL: v_urem_v2i64:
619 ; CGP: ; %bb.0:
620 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
621 ; CGP-NEXT: v_mov_b32_e32 v8, v0
622 ; CGP-NEXT: v_mov_b32_e32 v9, v1
623 ; CGP-NEXT: v_or_b32_e32 v1, v9, v5
624 ; CGP-NEXT: v_mov_b32_e32 v0, 0
625 ; CGP-NEXT: v_cmp_ne_u64_e32 vcc, 0, v[0:1]
626 ; CGP-NEXT: ; implicit-def: $vgpr0_vgpr1
[all …]
Dsrem.i64.ll3 …sa3d -mcpu=hawaii -denormal-fp-math-f32=preserve-sign < %s | FileCheck -check-prefixes=CHECK,CGP %s
678 ; CGP-LABEL: v_srem_v2i64:
679 ; CGP: ; %bb.0:
680 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
681 ; CGP-NEXT: v_mov_b32_e32 v9, v1
682 ; CGP-NEXT: v_mov_b32_e32 v8, v0
683 ; CGP-NEXT: v_or_b32_e32 v1, v9, v5
684 ; CGP-NEXT: v_mov_b32_e32 v0, 0
685 ; CGP-NEXT: v_cmp_ne_u64_e32 vcc, 0, v[0:1]
686 ; CGP-NEXT: ; implicit-def: $vgpr0_vgpr1
[all …]
Dudiv.i64.ll3 …l-fp-math-f32=preserve-sign -mattr=+mad-mac-f32-insts < %s | FileCheck -check-prefixes=CHECK,CGP %s
626 ; CGP-LABEL: v_udiv_v2i64:
627 ; CGP: ; %bb.0:
628 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
629 ; CGP-NEXT: v_mov_b32_e32 v8, v0
630 ; CGP-NEXT: v_mov_b32_e32 v9, v1
631 ; CGP-NEXT: v_or_b32_e32 v1, v9, v5
632 ; CGP-NEXT: v_mov_b32_e32 v0, 0
633 ; CGP-NEXT: v_cmp_ne_u64_e32 vcc, 0, v[0:1]
634 ; CGP-NEXT: ; implicit-def: $vgpr0_vgpr1
[all …]
Dsdiv.i64.ll3 …sa3d -mcpu=hawaii -denormal-fp-math-f32=preserve-sign < %s | FileCheck -check-prefixes=CHECK,CGP %s
690 ; CGP-LABEL: v_sdiv_v2i64:
691 ; CGP: ; %bb.0:
692 ; CGP-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
693 ; CGP-NEXT: v_mov_b32_e32 v9, v1
694 ; CGP-NEXT: v_mov_b32_e32 v8, v0
695 ; CGP-NEXT: v_or_b32_e32 v1, v9, v5
696 ; CGP-NEXT: v_mov_b32_e32 v0, 0
697 ; CGP-NEXT: v_cmp_ne_u64_e32 vcc, 0, v[0:1]
698 ; CGP-NEXT: ; implicit-def: $vgpr0_vgpr1
[all …]
/external/llvm/utils/TableGen/
DDAGISelEmitter.cpp27 CodeGenDAGPatterns CGP; member in __anon014c3d570111::DAGISelEmitter
29 explicit DAGISelEmitter(RecordKeeper &R) : CGP(R) {} in DAGISelEmitter()
42 CodeGenDAGPatterns &CGP) { in getResultPatternCost() argument
49 CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op); in getResultPatternCost()
54 Cost += getResultPatternCost(P->getChild(i), CGP); in getResultPatternCost()
61 CodeGenDAGPatterns &CGP) { in getResultPatternSize() argument
70 Cost += getResultPatternSize(P->getChild(i), CGP); in getResultPatternSize()
79 PatternSortingPredicate(CodeGenDAGPatterns &cgp) : CGP(cgp) {} in PatternSortingPredicate()
80 CodeGenDAGPatterns &CGP; member
97 int LHSSize = LHS->getPatternComplexity(CGP); in operator ()()
[all …]
DDAGISelMatcherGen.cpp50 const CodeGenDAGPatterns &CGP; member in __anone89deb5b0111::MatcherGen
149 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen()
177 TreePattern &TP = *CGP.pf_begin()->second; in InferPossibleTypes()
210 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("imm")); in EmitLeafMatchCode()
305 const SDNodeInfo &CInfo = CGP.getSDNodeInfo(N->getOperator()); in EmitOperatorMatchCode()
349 if (N->NodeHasProperty(SDNPMemOperand, CGP)) in EmitOperatorMatchCode()
355 if (N->NodeHasProperty(SDNPHasChain, CGP)) { in EmitOperatorMatchCode()
399 const SDNodeInfo &PInfo = CGP.getSDNodeInfo(Root->getOperator()); in EmitOperatorMatchCode()
401 Root->getOperator() == CGP.get_intrinsic_void_sdnode() || in EmitOperatorMatchCode()
402 Root->getOperator() == CGP.get_intrinsic_w_chain_sdnode() || in EmitOperatorMatchCode()
[all …]
DDAGISelMatcherOpt.cpp26 const CodeGenDAGPatterns &CGP) { in ContractNodes() argument
35 ContractNodes(Child, CGP); in ContractNodes()
69 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
78 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
98 Pattern.getSrcPattern()->NodeHasProperty(SDNPHasChain, CGP)) in ContractNodes()
108 Pattern.getSrcPattern()->NodeHasProperty(SDNPOutGlue, CGP)) in ContractNodes()
138 ContractNodes(N->getNextPtr(), CGP); in ContractNodes()
157 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
446 const CodeGenDAGPatterns &CGP) { in OptimizeMatcher() argument
447 ContractNodes(MatcherPtr, CGP); in OptimizeMatcher()
DFastISelEmitter.cpp398 void collectPatterns(CodeGenDAGPatterns &CGP);
409 static std::string getOpcodeName(Record *Op, CodeGenDAGPatterns &CGP) { in getOpcodeName() argument
410 return CGP.getSDNodeInfo(Op).getEnumName(); in getOpcodeName()
440 void FastISelMap::collectPatterns(CodeGenDAGPatterns &CGP) { in collectPatterns() argument
441 const CodeGenTarget &Target = CGP.getTargetInfo(); in collectPatterns()
448 for (CodeGenDAGPatterns::ptm_iterator I = CGP.ptm_begin(), in collectPatterns()
449 E = CGP.ptm_end(); I != E; ++I) { in collectPatterns()
459 CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op); in collectPatterns()
511 std::string OpcodeName = getOpcodeName(InstPatOp, CGP); in collectPatterns()
584 int complexity = Pattern.getPatternComplexity(CGP); in collectPatterns()
[all …]
DDAGISelMatcherEmitter.cpp36 const CodeGenDAGPatterns &CGP; member in __anonfe6ba83b0211::MatcherTableEmitter
57 : CGP(cgp) {} in MatcherTableEmitter()
589 << SNT->getPattern().getPatternComplexity(CGP) << '\n'; in EmitMatcher()
608 << CM->getPattern().getPatternComplexity(CGP) << '\n'; in EmitMatcher()
723 CGP.getSDNodeTransform(NodeXForms[i]); in EmitPredicateFunctions()
733 std::string ClassName = CGP.getSDNodeInfo(SDNode).getSDClassName(); in EmitPredicateFunctions()
825 const CodeGenDAGPatterns &CGP, in EmitMatcherTable() argument
832 MatcherTableEmitter MatcherEmitter(CGP); in EmitMatcherTable()
DCodeGenDAGPatterns.h430 getComplexPatternInfo(const CodeGenDAGPatterns &CGP) const;
436 unsigned getNumMIResults(const CodeGenDAGPatterns &CGP) const;
439 bool NodeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const;
443 bool TreeHasProperty(SDNP Property, const CodeGenDAGPatterns &CGP) const;
713 int getPatternComplexity(const CodeGenDAGPatterns &CGP) const;
/external/llvm-project/llvm/utils/TableGen/
DDAGISelEmitter.cpp27 CodeGenDAGPatterns CGP; member in __anon0fe03c850111::DAGISelEmitter
29 explicit DAGISelEmitter(RecordKeeper &R) : Records(R), CGP(R) {} in DAGISelEmitter()
42 CodeGenDAGPatterns &CGP) { in getResultPatternCost() argument
49 CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op); in getResultPatternCost()
54 Cost += getResultPatternCost(P->getChild(i), CGP); in getResultPatternCost()
61 CodeGenDAGPatterns &CGP) { in getResultPatternSize() argument
70 Cost += getResultPatternSize(P->getChild(i), CGP); in getResultPatternSize()
79 PatternSortingPredicate(CodeGenDAGPatterns &cgp) : CGP(cgp) {} in PatternSortingPredicate()
80 CodeGenDAGPatterns &CGP; member
97 int LHSSize = LHS->getPatternComplexity(CGP); in operator ()()
[all …]
DDAGISelMatcherGen.cpp55 const CodeGenDAGPatterns &CGP; member in __anon5e3ec3c90111::MatcherGen
148 : Pattern(pattern), CGP(cgp), NextRecordedOperandNo(0), in MatcherGen()
176 TreePattern &TP = *CGP.pf_begin()->second; in InferPossibleTypes()
211 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("imm")); in EmitLeafMatchCode()
285 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("build_vector")); in EmitLeafMatchCode()
295 const SDNodeInfo &NI = CGP.getSDNodeInfo(CGP.getSDNodeNamed("build_vector")); in EmitLeafMatchCode()
328 const SDNodeInfo &CInfo = CGP.getSDNodeInfo(N->getOperator()); in EmitOperatorMatchCode()
372 if (N->NodeHasProperty(SDNPMemOperand, CGP)) in EmitOperatorMatchCode()
378 if (N->NodeHasProperty(SDNPHasChain, CGP)) { in EmitOperatorMatchCode()
422 const SDNodeInfo &PInfo = CGP.getSDNodeInfo(Root->getOperator()); in EmitOperatorMatchCode()
[all …]
DDAGISelMatcherOpt.cpp25 const CodeGenDAGPatterns &CGP) { in ContractNodes() argument
34 ContractNodes(Child, CGP); in ContractNodes()
72 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
81 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
101 Pattern.getSrcPattern()->NodeHasProperty(SDNPHasChain, CGP)) in ContractNodes()
111 Pattern.getSrcPattern()->NodeHasProperty(SDNPOutGlue, CGP)) in ContractNodes()
141 ContractNodes(N->getNextPtr(), CGP); in ContractNodes()
160 return ContractNodes(MatcherPtr, CGP); in ContractNodes()
468 const CodeGenDAGPatterns &CGP) { in OptimizeMatcher() argument
469 ContractNodes(MatcherPtr, CGP); in OptimizeMatcher()
DFastISelEmitter.cpp405 void collectPatterns(CodeGenDAGPatterns &CGP);
416 static std::string getOpcodeName(Record *Op, CodeGenDAGPatterns &CGP) { in getOpcodeName() argument
417 return std::string(CGP.getSDNodeInfo(Op).getEnumName()); in getOpcodeName()
447 void FastISelMap::collectPatterns(CodeGenDAGPatterns &CGP) { in collectPatterns() argument
448 const CodeGenTarget &Target = CGP.getTargetInfo(); in collectPatterns()
451 for (CodeGenDAGPatterns::ptm_iterator I = CGP.ptm_begin(), in collectPatterns()
452 E = CGP.ptm_end(); I != E; ++I) { in collectPatterns()
462 CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op); in collectPatterns()
521 std::string OpcodeName = getOpcodeName(InstPatOp, CGP); in collectPatterns()
593 int complexity = Pattern.getPatternComplexity(CGP); in collectPatterns()
[all …]
DDAGISelMatcherEmitter.cpp49 const CodeGenDAGPatterns &CGP; member in __anon907f07a90211::MatcherTableEmitter
85 MatcherTableEmitter(const CodeGenDAGPatterns &cgp) : CGP(cgp) { in MatcherTableEmitter()
810 << SNT->getPattern().getPatternComplexity(CGP) << '\n'; in EmitMatcher()
845 << CM->getPattern().getPatternComplexity(CGP) << '\n'; in EmitMatcher()
997 CGP.getSDNodeTransform(NodeXForms[i]); in EmitPredicateFunctions()
1008 std::string(CGP.getSDNodeInfo(SDNode).getSDClassName()); in EmitPredicateFunctions()
1084 const CodeGenDAGPatterns &CGP, in EmitMatcherTable() argument
1116 MatcherTableEmitter MatcherEmitter(CGP); in EmitMatcherTable()
/external/llvm-project/llvm/test/CodeGen/AArch64/
Dand-sink.ll2 ; RUN: opt -S -codegenprepare -mtriple=aarch64-linux %s | FileCheck --check-prefix=CHECK-CGP %s
15 ; CHECK-CGP-LABEL: @and_sink1(
16 ; CHECK-CGP-NOT: and i32
20 ; CHECK-CGP-LABEL: bb0:
21 ; CHECK-CGP: and i32
22 ; CHECK-CGP-NEXT: icmp eq i32
23 ; CHECK-CGP-NEXT: store
24 ; CHECK-CGP-NEXT: br
44 ; CHECK-CGP-LABEL: @and_sink2(
45 ; CHECK-CGP-NOT: and i32
[all …]
/external/llvm-project/llvm/test/CodeGen/X86/
Dand-sink.ll3 …opt < %s -codegenprepare -S -mtriple=x86_64-unknown-unknown | FileCheck --check-prefix=CHECK-CGP %s
27 ; CHECK-CGP-LABEL: @and_sink1(
28 ; CHECK-CGP-NOT: and i32
32 ; CHECK-CGP-LABEL: bb0:
33 ; CHECK-CGP: and i32
34 ; CHECK-CGP-NEXT: icmp eq i32
35 ; CHECK-CGP-NEXT: store
36 ; CHECK-CGP-NEXT: br
74 ; CHECK-CGP-LABEL: @and_sink2(
75 ; CHECK-CGP-NOT: and i32
[all …]
/external/llvm/lib/Analysis/
DCallGraphSCCPass.cpp556 CGPassManager *CGP; in assignPassManager() local
559 CGP = (CGPassManager*)PMS.top(); in assignPassManager()
566 CGP = new CGPassManager(); in assignPassManager()
570 TPM->addIndirectPassManager(CGP); in assignPassManager()
574 Pass *P = CGP; in assignPassManager()
578 PMS.push(CGP); in assignPassManager()
581 CGP->add(this); in assignPassManager()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DCallGraphSCCPass.cpp575 CGPassManager *CGP; in assignPassManager() local
578 CGP = (CGPassManager*)PMS.top(); in assignPassManager()
585 CGP = new CGPassManager(); in assignPassManager()
589 TPM->addIndirectPassManager(CGP); in assignPassManager()
593 Pass *P = CGP; in assignPassManager()
597 PMS.push(CGP); in assignPassManager()
600 CGP->add(this); in assignPassManager()
/external/llvm-project/llvm/lib/Analysis/
DCallGraphSCCPass.cpp626 CGPassManager *CGP; in assignPassManager() local
629 CGP = (CGPassManager*)PMS.top(); in assignPassManager()
636 CGP = new CGPassManager(); in assignPassManager()
640 TPM->addIndirectPassManager(CGP); in assignPassManager()
644 Pass *P = CGP; in assignPassManager()
648 PMS.push(CGP); in assignPassManager()
651 CGP->add(this); in assignPassManager()
/external/llvm/test/CodeGen/NVPTX/
Dbranch-fold.ll2 ; Disable CGP which also folds branches, so that only BranchFolding is under

12