|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/lib/Target/AArch64/AArch64GenDAGISel.inc114605 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114610 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114616 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114622 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114678 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114687 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114694 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114702 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114710 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114718 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114823 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114838 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114845 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114852 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114860 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114867 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114874 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114882 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114889 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114936 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114941 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
114979 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
114986 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
115069 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115076 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115083 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115090 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115387 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
115638 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115638 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115644 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115644 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115651 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115651 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115658 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115658 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115666 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115666 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115673 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115673 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115681 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115681 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115688 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115688 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115696 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115696 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115704 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115704 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115712 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115712 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115720 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115720 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115727 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115727 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115782 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115782 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115788 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115788 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115794 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115794 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115800 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
115800 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc78692 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
79424 auto *N = cast<ConstantSDNode>(Node);
79424 auto *N = cast<ConstantSDNode>(Node);
79441 auto *N = cast<ConstantSDNode>(Node);
79441 auto *N = cast<ConstantSDNode>(Node);
79519 auto *N = cast<ConstantSDNode>(Node);
79519 auto *N = cast<ConstantSDNode>(Node);
79527 auto *N = cast<ConstantSDNode>(Node);
79527 auto *N = cast<ConstantSDNode>(Node);
79786 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79786 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79798 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79798 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79804 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79804 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79816 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79816 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79822 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79822 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79828 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79828 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79834 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79834 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79840 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79840 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79846 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79846 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79866 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
79866 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/AMDGPU/R600GenDAGISel.inc12310 auto *N = cast<ConstantSDNode>(Node);
12310 auto *N = cast<ConstantSDNode>(Node);
12620 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
12620 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/ARC/ARCGenDAGISel.inc 1189 auto *N = cast<ConstantSDNode>(Node);
1189 auto *N = cast<ConstantSDNode>(Node);
1196 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
1203 auto *N = cast<ConstantSDNode>(Node);
1203 auto *N = cast<ConstantSDNode>(Node);
gen/lib/Target/ARM/ARMGenDAGISel.inc54002 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54009 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54014 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54019 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54026 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54031 auto *N = cast<ConstantSDNode>(Node);
54031 auto *N = cast<ConstantSDNode>(Node);
54040 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54047 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54054 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54061 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54070 return !isa<ConstantSDNode>(N);
54074 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54081 auto *N = cast<ConstantSDNode>(Node);
54081 auto *N = cast<ConstantSDNode>(Node);
54092 ConstantSDNode *ConstVal = cast<ConstantSDNode>(N->getOperand(0));
54092 ConstantSDNode *ConstVal = cast<ConstantSDNode>(N->getOperand(0));
54100 auto *N = cast<ConstantSDNode>(Node);
54100 auto *N = cast<ConstantSDNode>(Node);
54108 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54121 auto *N = cast<ConstantSDNode>(Node);
54121 auto *N = cast<ConstantSDNode>(Node);
54130 auto *N = cast<ConstantSDNode>(Node);
54130 auto *N = cast<ConstantSDNode>(Node);
54139 auto *N = cast<ConstantSDNode>(Node);
54139 auto *N = cast<ConstantSDNode>(Node);
54147 auto *N = cast<ConstantSDNode>(Node);
54147 auto *N = cast<ConstantSDNode>(Node);
54156 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54163 auto *N = cast<ConstantSDNode>(Node);
54163 auto *N = cast<ConstantSDNode>(Node);
54171 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54200 auto *N = cast<ConstantSDNode>(Node);
54200 auto *N = cast<ConstantSDNode>(Node);
54217 auto *N = cast<ConstantSDNode>(Node);
54217 auto *N = cast<ConstantSDNode>(Node);
54228 auto *N = cast<ConstantSDNode>(Node);
54228 auto *N = cast<ConstantSDNode>(Node);
54236 auto *N = cast<ConstantSDNode>(Node);
54236 auto *N = cast<ConstantSDNode>(Node);
54245 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54252 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54259 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54266 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54304 auto *N = cast<ConstantSDNode>(Node);
54304 auto *N = cast<ConstantSDNode>(Node);
54454 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54461 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54466 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54642 auto *N = cast<ConstantSDNode>(Node);
54642 auto *N = cast<ConstantSDNode>(Node);
54654 ConstantSDNode *ConstVal = cast<ConstantSDNode>(N->getOperand(0));
54654 ConstantSDNode *ConstVal = cast<ConstantSDNode>(N->getOperand(0));
54662 auto *N = cast<ConstantSDNode>(Node);
54662 auto *N = cast<ConstantSDNode>(Node);
54707 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54712 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54717 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54722 const APInt & Imm = cast<ConstantSDNode>(Node)->getAPIntValue();
54731 auto *N = cast<ConstantSDNode>(Node);
54731 auto *N = cast<ConstantSDNode>(Node);
54739 auto *N = cast<ConstantSDNode>(Node);
54739 auto *N = cast<ConstantSDNode>(Node);
54747 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54845 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54850 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
54855 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
55023 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55023 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55030 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55030 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55037 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55037 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55049 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55049 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55055 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55055 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55062 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55062 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55070 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55070 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55076 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55076 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55084 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55084 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55090 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55090 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55096 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55096 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55104 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55104 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55111 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55111 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55118 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55118 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55125 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55125 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55133 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55133 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55141 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55141 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55155 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55155 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55171 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55171 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55178 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55178 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55185 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
55185 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/AVR/AVRGenDAGISel.inc 1578 auto *N = cast<ConstantSDNode>(Node);
1578 auto *N = cast<ConstantSDNode>(Node);
1603 auto *N = cast<ConstantSDNode>(Node);
1603 auto *N = cast<ConstantSDNode>(Node);
1628 auto *N = cast<ConstantSDNode>(Node);
1628 auto *N = cast<ConstantSDNode>(Node);
1636 auto *N = cast<ConstantSDNode>(Node);
1636 auto *N = cast<ConstantSDNode>(Node);
1663 auto *N = cast<ConstantSDNode>(Node);
1663 auto *N = cast<ConstantSDNode>(Node);
1672 auto *N = cast<ConstantSDNode>(Node);
1672 auto *N = cast<ConstantSDNode>(Node);
1678 auto *N = cast<ConstantSDNode>(Node);
1678 auto *N = cast<ConstantSDNode>(Node);
1752 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1752 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1758 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1758 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1765 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1765 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1772 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1772 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/BPF/BPFGenDAGISel.inc 1924 auto *N = cast<ConstantSDNode>(Node);
1924 auto *N = cast<ConstantSDNode>(Node);
2026 auto *N = cast<ConstantSDNode>(Node);
2026 auto *N = cast<ConstantSDNode>(Node);
2033 auto *N = cast<ConstantSDNode>(Node);
2033 auto *N = cast<ConstantSDNode>(Node);
2040 auto *N = cast<ConstantSDNode>(Node);
2040 auto *N = cast<ConstantSDNode>(Node);
2047 auto *N = cast<ConstantSDNode>(Node);
2047 auto *N = cast<ConstantSDNode>(Node);
2054 auto *N = cast<ConstantSDNode>(Node);
2054 auto *N = cast<ConstantSDNode>(Node);
2061 auto *N = cast<ConstantSDNode>(Node);
2061 auto *N = cast<ConstantSDNode>(Node);
2068 auto *N = cast<ConstantSDNode>(Node);
2068 auto *N = cast<ConstantSDNode>(Node);
2075 auto *N = cast<ConstantSDNode>(Node);
2075 auto *N = cast<ConstantSDNode>(Node);
2082 auto *N = cast<ConstantSDNode>(Node);
2082 auto *N = cast<ConstantSDNode>(Node);
2089 auto *N = cast<ConstantSDNode>(Node);
2089 auto *N = cast<ConstantSDNode>(Node);
gen/lib/Target/Hexagon/HexagonGenDAGISel.inc72274 auto *N = cast<ConstantSDNode>(Node);
72274 auto *N = cast<ConstantSDNode>(Node);
72319 auto *N = cast<ConstantSDNode>(Node);
72319 auto *N = cast<ConstantSDNode>(Node);
72358 auto *N = cast<ConstantSDNode>(Node);
72358 auto *N = cast<ConstantSDNode>(Node);
72379 auto *N = cast<ConstantSDNode>(Node);
72379 auto *N = cast<ConstantSDNode>(Node);
72402 auto *N = cast<ConstantSDNode>(Node);
72402 auto *N = cast<ConstantSDNode>(Node);
72411 auto *N = cast<ConstantSDNode>(Node);
72411 auto *N = cast<ConstantSDNode>(Node);
72420 auto *N = cast<ConstantSDNode>(Node);
72420 auto *N = cast<ConstantSDNode>(Node);
72429 auto *N = cast<ConstantSDNode>(Node);
72429 auto *N = cast<ConstantSDNode>(Node);
72438 auto *N = cast<ConstantSDNode>(Node);
72438 auto *N = cast<ConstantSDNode>(Node);
72447 auto *N = cast<ConstantSDNode>(Node);
72447 auto *N = cast<ConstantSDNode>(Node);
72456 auto *N = cast<ConstantSDNode>(Node);
72456 auto *N = cast<ConstantSDNode>(Node);
72465 auto *N = cast<ConstantSDNode>(Node);
72465 auto *N = cast<ConstantSDNode>(Node);
72488 auto *N = cast<ConstantSDNode>(Node);
72488 auto *N = cast<ConstantSDNode>(Node);
72495 auto *N = cast<ConstantSDNode>(Node);
72495 auto *N = cast<ConstantSDNode>(Node);
72532 auto *N = cast<ConstantSDNode>(Node);
72532 auto *N = cast<ConstantSDNode>(Node);
72539 auto *N = cast<ConstantSDNode>(Node);
72539 auto *N = cast<ConstantSDNode>(Node);
72546 auto *N = cast<ConstantSDNode>(Node);
72546 auto *N = cast<ConstantSDNode>(Node);
72552 auto *N = cast<ConstantSDNode>(Node);
72552 auto *N = cast<ConstantSDNode>(Node);
72618 auto *N = cast<ConstantSDNode>(Node);
72618 auto *N = cast<ConstantSDNode>(Node);
72627 auto *N = cast<ConstantSDNode>(Node);
72627 auto *N = cast<ConstantSDNode>(Node);
72638 auto *N = cast<ConstantSDNode>(Node);
72638 auto *N = cast<ConstantSDNode>(Node);
72651 return !isa<ConstantSDNode>(Op1);
72658 auto *N = cast<ConstantSDNode>(Node);
72658 auto *N = cast<ConstantSDNode>(Node);
72665 auto *N = cast<ConstantSDNode>(Node);
72665 auto *N = cast<ConstantSDNode>(Node);
72672 auto *N = cast<ConstantSDNode>(Node);
72672 auto *N = cast<ConstantSDNode>(Node);
72678 auto *N = cast<ConstantSDNode>(Node);
72678 auto *N = cast<ConstantSDNode>(Node);
72687 auto *N = cast<ConstantSDNode>(Node);
72687 auto *N = cast<ConstantSDNode>(Node);
72696 auto *N = cast<ConstantSDNode>(Node);
72696 auto *N = cast<ConstantSDNode>(Node);
72702 auto *N = cast<ConstantSDNode>(Node);
72702 auto *N = cast<ConstantSDNode>(Node);
72708 auto *N = cast<ConstantSDNode>(Node);
72708 auto *N = cast<ConstantSDNode>(Node);
72714 auto *N = cast<ConstantSDNode>(Node);
72714 auto *N = cast<ConstantSDNode>(Node);
72729 auto *N = cast<ConstantSDNode>(Node);
72729 auto *N = cast<ConstantSDNode>(Node);
72736 auto *N = cast<ConstantSDNode>(Node);
72736 auto *N = cast<ConstantSDNode>(Node);
72742 auto *N = cast<ConstantSDNode>(Node);
72742 auto *N = cast<ConstantSDNode>(Node);
72749 auto *N = cast<ConstantSDNode>(Node);
72749 auto *N = cast<ConstantSDNode>(Node);
72756 auto *N = cast<ConstantSDNode>(Node);
72756 auto *N = cast<ConstantSDNode>(Node);
72762 auto *N = cast<ConstantSDNode>(Node);
72762 auto *N = cast<ConstantSDNode>(Node);
72768 auto *N = cast<ConstantSDNode>(Node);
72768 auto *N = cast<ConstantSDNode>(Node);
72777 auto *N = cast<ConstantSDNode>(Node);
72777 auto *N = cast<ConstantSDNode>(Node);
72786 auto *N = cast<ConstantSDNode>(Node);
72786 auto *N = cast<ConstantSDNode>(Node);
72792 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
72856 auto *N = cast<ConstantSDNode>(Node);
72856 auto *N = cast<ConstantSDNode>(Node);
72865 auto *N = cast<ConstantSDNode>(Node);
72865 auto *N = cast<ConstantSDNode>(Node);
72871 auto *N = cast<ConstantSDNode>(Node);
72871 auto *N = cast<ConstantSDNode>(Node);
72880 auto *N = cast<ConstantSDNode>(Node);
72880 auto *N = cast<ConstantSDNode>(Node);
72886 auto *N = cast<ConstantSDNode>(Node);
72886 auto *N = cast<ConstantSDNode>(Node);
72953 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72953 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72964 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72964 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72971 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72971 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72978 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72978 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72985 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72985 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72992 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72992 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72999 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72999 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73006 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73006 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73013 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73013 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73020 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73020 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73027 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73027 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73045 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73045 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73056 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73056 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73063 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73063 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73071 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73071 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73078 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73078 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73086 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73086 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73093 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73093 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73100 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73100 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73107 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73107 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73114 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73114 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73121 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73121 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73136 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73136 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73143 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73143 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73147 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73153 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73153 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73157 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73157 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73163 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73172 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73172 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73180 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
73180 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/Lanai/LanaiGenDAGISel.inc 1440 auto *N = cast<ConstantSDNode>(Node);
1440 auto *N = cast<ConstantSDNode>(Node);
1449 auto *N = cast<ConstantSDNode>(Node);
1449 auto *N = cast<ConstantSDNode>(Node);
1458 auto *N = cast<ConstantSDNode>(Node);
1458 auto *N = cast<ConstantSDNode>(Node);
1467 auto *N = cast<ConstantSDNode>(Node);
1467 auto *N = cast<ConstantSDNode>(Node);
1476 auto *N = cast<ConstantSDNode>(Node);
1476 auto *N = cast<ConstantSDNode>(Node);
1486 auto *N = cast<ConstantSDNode>(Node);
1486 auto *N = cast<ConstantSDNode>(Node);
1494 auto *N = cast<ConstantSDNode>(Node);
1494 auto *N = cast<ConstantSDNode>(Node);
1549 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1549 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1556 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1556 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1563 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1563 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1569 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
1569 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/MSP430/MSP430GenDAGISel.inc 4821 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
4827 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
gen/lib/Target/Mips/MipsGenDAGISel.inc30118 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30123 auto *N = cast<ConstantSDNode>(Node);
30123 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30149 auto *N = cast<ConstantSDNode>(Node);
30149 auto *N = cast<ConstantSDNode>(Node);
30162 auto *N = cast<ConstantSDNode>(Node);
30162 auto *N = cast<ConstantSDNode>(Node);
30168 auto *N = cast<ConstantSDNode>(Node);
30168 auto *N = cast<ConstantSDNode>(Node);
30176 auto *N = cast<ConstantSDNode>(Node);
30176 auto *N = cast<ConstantSDNode>(Node);
30187 auto *N = cast<ConstantSDNode>(Node);
30187 auto *N = cast<ConstantSDNode>(Node);
30193 auto *N = cast<ConstantSDNode>(Node);
30193 auto *N = cast<ConstantSDNode>(Node);
30217 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30222 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30227 auto *N = cast<ConstantSDNode>(Node);
30227 auto *N = cast<ConstantSDNode>(Node);
30235 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30242 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30249 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30255 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30260 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30266 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30272 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30289 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30294 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30299 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30330 auto *N = cast<ConstantSDNode>(Node);
30330 auto *N = cast<ConstantSDNode>(Node);
30338 auto *N = cast<ConstantSDNode>(Node);
30338 auto *N = cast<ConstantSDNode>(Node);
30346 auto *N = cast<ConstantSDNode>(Node);
30346 auto *N = cast<ConstantSDNode>(Node);
30354 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30361 auto *N = cast<ConstantSDNode>(Node);
30361 auto *N = cast<ConstantSDNode>(Node);
30367 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30372 auto *N = cast<ConstantSDNode>(Node);
30372 auto *N = cast<ConstantSDNode>(Node);
30378 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30385 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30390 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30403 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30408 auto *N = cast<ConstantSDNode>(Node);
30408 auto *N = cast<ConstantSDNode>(Node);
30417 auto *N = cast<ConstantSDNode>(Node);
30417 auto *N = cast<ConstantSDNode>(Node);
30425 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
30430 auto *N = cast<ConstantSDNode>(Node);
30430 auto *N = cast<ConstantSDNode>(Node);
30439 auto *N = cast<ConstantSDNode>(Node);
30439 auto *N = cast<ConstantSDNode>(Node);
30448 auto *N = cast<ConstantSDNode>(Node);
30448 auto *N = cast<ConstantSDNode>(Node);
30621 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30621 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30627 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30627 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30643 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30643 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30649 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30649 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/NVPTX/NVPTXGenDAGISel.inc72200 auto *N = cast<ConstantSDNode>(Node);
72200 auto *N = cast<ConstantSDNode>(Node);
72210 auto *N = cast<ConstantSDNode>(Node);
72210 auto *N = cast<ConstantSDNode>(Node);
72220 auto *N = cast<ConstantSDNode>(Node);
72220 auto *N = cast<ConstantSDNode>(Node);
72229 auto *N = cast<ConstantSDNode>(Node);
72229 auto *N = cast<ConstantSDNode>(Node);
72238 auto *N = cast<ConstantSDNode>(Node);
72238 auto *N = cast<ConstantSDNode>(Node);
72247 auto *N = cast<ConstantSDNode>(Node);
72247 auto *N = cast<ConstantSDNode>(Node);
72353 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72353 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72359 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72359 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72365 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72365 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72371 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72371 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72379 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
72379 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/PowerPC/PPCGenDAGISel.inc44253 auto *N = cast<ConstantSDNode>(Node);
44253 auto *N = cast<ConstantSDNode>(Node);
44263 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44272 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44281 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44290 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44295 auto *N = cast<ConstantSDNode>(Node);
44295 auto *N = cast<ConstantSDNode>(Node);
44316 auto *N = cast<ConstantSDNode>(Node);
44316 auto *N = cast<ConstantSDNode>(Node);
44435 auto *N = cast<ConstantSDNode>(Node);
44435 auto *N = cast<ConstantSDNode>(Node);
44451 return cast<ConstantSDNode>(N->getOperand(1))->getZExtValue() == 0;
44459 return cast<ConstantSDNode>(N->getOperand(1))->getZExtValue() == 1;
44470 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44477 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
44879 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44879 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44886 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44886 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44893 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44893 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44901 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44901 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44910 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44910 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44925 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44925 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44932 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44932 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44939 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44939 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44947 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
44947 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/RISCV/RISCVGenDAGISel.inc13813 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13962 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13967 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13976 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13985 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
13990 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
14187 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
14187 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
14194 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
14194 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/Sparc/SparcGenDAGISel.inc 3491 auto *N = cast<ConstantSDNode>(Node);
3491 auto *N = cast<ConstantSDNode>(Node);
3556 auto *N = cast<ConstantSDNode>(Node);
3556 auto *N = cast<ConstantSDNode>(Node);
3564 auto *N = cast<ConstantSDNode>(Node);
3564 auto *N = cast<ConstantSDNode>(Node);
3570 auto *N = cast<ConstantSDNode>(Node);
3570 auto *N = cast<ConstantSDNode>(Node);
3578 auto *N = cast<ConstantSDNode>(Node);
3578 auto *N = cast<ConstantSDNode>(Node);
3584 auto *N = cast<ConstantSDNode>(Node);
3584 auto *N = cast<ConstantSDNode>(Node);
3633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3633 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3640 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3640 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3646 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3646 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3654 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3654 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3661 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3661 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3668 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3668 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3675 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3675 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3682 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
3682 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/SystemZ/SystemZGenDAGISel.inc29858 auto *N = cast<ConstantSDNode>(Node);
29858 auto *N = cast<ConstantSDNode>(Node);
29997 auto *N = cast<ConstantSDNode>(Node);
29997 auto *N = cast<ConstantSDNode>(Node);
30011 auto *N = cast<ConstantSDNode>(Node);
30011 auto *N = cast<ConstantSDNode>(Node);
30019 auto *N = cast<ConstantSDNode>(Node);
30019 auto *N = cast<ConstantSDNode>(Node);
30027 auto *N = cast<ConstantSDNode>(Node);
30027 auto *N = cast<ConstantSDNode>(Node);
30047 auto *N = cast<ConstantSDNode>(Node);
30047 auto *N = cast<ConstantSDNode>(Node);
30074 auto *N = cast<ConstantSDNode>(Node);
30074 auto *N = cast<ConstantSDNode>(Node);
30083 auto *N = cast<ConstantSDNode>(Node);
30083 auto *N = cast<ConstantSDNode>(Node);
30091 auto *N = cast<ConstantSDNode>(Node);
30091 auto *N = cast<ConstantSDNode>(Node);
30099 auto *N = cast<ConstantSDNode>(Node);
30099 auto *N = cast<ConstantSDNode>(Node);
30107 auto *N = cast<ConstantSDNode>(Node);
30107 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30136 auto *N = cast<ConstantSDNode>(Node);
30145 auto *N = cast<ConstantSDNode>(Node);
30145 auto *N = cast<ConstantSDNode>(Node);
30153 auto *N = cast<ConstantSDNode>(Node);
30153 auto *N = cast<ConstantSDNode>(Node);
30161 auto *N = cast<ConstantSDNode>(Node);
30161 auto *N = cast<ConstantSDNode>(Node);
30170 auto *N = cast<ConstantSDNode>(Node);
30170 auto *N = cast<ConstantSDNode>(Node);
30178 auto *N = cast<ConstantSDNode>(Node);
30178 auto *N = cast<ConstantSDNode>(Node);
30186 auto *N = cast<ConstantSDNode>(Node);
30186 auto *N = cast<ConstantSDNode>(Node);
30194 auto *N = cast<ConstantSDNode>(Node);
30194 auto *N = cast<ConstantSDNode>(Node);
30202 auto *N = cast<ConstantSDNode>(Node);
30202 auto *N = cast<ConstantSDNode>(Node);
30210 auto *N = cast<ConstantSDNode>(Node);
30210 auto *N = cast<ConstantSDNode>(Node);
30218 auto *N = cast<ConstantSDNode>(Node);
30218 auto *N = cast<ConstantSDNode>(Node);
30226 auto *N = cast<ConstantSDNode>(Node);
30226 auto *N = cast<ConstantSDNode>(Node);
30234 auto *N = cast<ConstantSDNode>(Node);
30234 auto *N = cast<ConstantSDNode>(Node);
30242 auto *N = cast<ConstantSDNode>(Node);
30242 auto *N = cast<ConstantSDNode>(Node);
30264 unsigned Type = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue();
30273 unsigned Type = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue();
30281 auto *N = cast<ConstantSDNode>(Node);
30281 auto *N = cast<ConstantSDNode>(Node);
30289 auto *N = cast<ConstantSDNode>(Node);
30289 auto *N = cast<ConstantSDNode>(Node);
30324 auto *N = cast<ConstantSDNode>(Node);
30324 auto *N = cast<ConstantSDNode>(Node);
30332 auto *N = cast<ConstantSDNode>(Node);
30332 auto *N = cast<ConstantSDNode>(Node);
30340 auto *N = cast<ConstantSDNode>(Node);
30340 auto *N = cast<ConstantSDNode>(Node);
30348 auto *N = cast<ConstantSDNode>(Node);
30348 auto *N = cast<ConstantSDNode>(Node);
30356 auto *N = cast<ConstantSDNode>(Node);
30356 auto *N = cast<ConstantSDNode>(Node);
30418 auto *N = cast<ConstantSDNode>(Node);
30418 auto *N = cast<ConstantSDNode>(Node);
30511 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30511 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30518 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30518 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30525 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30525 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30532 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30532 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30539 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30539 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30546 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30546 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30553 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30553 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30560 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30560 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30567 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30567 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30574 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30574 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30581 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30581 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30588 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30588 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30595 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30595 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30602 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30602 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30609 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30609 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30616 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30616 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30623 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30623 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30630 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30630 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
30637 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/WebAssembly/WebAssemblyGenDAGISel.inc21203 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
21203 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
21213 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21218 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21353 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21358 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21363 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21368 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
21373 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
gen/lib/Target/X86/X86GenDAGISel.inc253693 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253700 auto *N = cast<ConstantSDNode>(Node);
253700 auto *N = cast<ConstantSDNode>(Node);
253936 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253951 auto *N = cast<ConstantSDNode>(Node);
253951 auto *N = cast<ConstantSDNode>(Node);
253959 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253966 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
253986 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254005 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254012 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254019 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254119 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(0))) {
254119 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(0))) {
254135 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
254135 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
254145 int64_t Imm = cast<ConstantSDNode>(Node)->getSExtValue();
254415 auto *N = cast<ConstantSDNode>(Node);
254415 auto *N = cast<ConstantSDNode>(Node);
254743 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254743 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254750 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254750 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254757 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254757 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254764 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254764 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254771 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254771 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254778 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254802 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254802 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254810 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254817 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254817 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254824 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254824 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254831 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254831 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254849 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254849 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254855 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254855 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254861 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254861 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254875 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254875 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254889 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254889 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254903 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254903 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254919 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254935 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254935 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254943 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254943 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254950 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254950 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254957 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254969 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254969 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254981 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254981 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254993 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
254993 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255005 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255005 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255017 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255017 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255029 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255029 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
255036 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
gen/lib/Target/XCore/XCoreGenDAGISel.inc 2273 auto *N = cast<ConstantSDNode>(Node);
2273 auto *N = cast<ConstantSDNode>(Node);
2281 auto *N = cast<ConstantSDNode>(Node);
2281 auto *N = cast<ConstantSDNode>(Node);
2290 auto *N = cast<ConstantSDNode>(Node);
2290 auto *N = cast<ConstantSDNode>(Node);
2298 auto *N = cast<ConstantSDNode>(Node);
2298 auto *N = cast<ConstantSDNode>(Node);
2391 auto *N = cast<ConstantSDNode>(Node);
2391 auto *N = cast<ConstantSDNode>(Node);
2403 auto *N = cast<ConstantSDNode>(Node);
2403 auto *N = cast<ConstantSDNode>(Node);
2415 auto *N = cast<ConstantSDNode>(Node);
2415 auto *N = cast<ConstantSDNode>(Node);
2423 auto *N = cast<ConstantSDNode>(Node);
2423 auto *N = cast<ConstantSDNode>(Node);
2431 auto *N = cast<ConstantSDNode>(Node);
2431 auto *N = cast<ConstantSDNode>(Node);
2474 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2474 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2482 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2482 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2490 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2490 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2499 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2499 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2507 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
2507 ConstantSDNode *N = cast<ConstantSDNode>(V.getNode());
include/llvm/CodeGen/SelectionDAG.h 350 SDNodeT *newSDNode(ArgTypes &&... Args) {
351 return new (NodeAllocator.template Allocate<SDNodeT>())
352 SDNodeT(std::forward<ArgTypes>(Args)...);
1448 const ConstantSDNode *C1,
1449 const ConstantSDNode *C2);
include/llvm/CodeGen/SelectionDAGISel.h 254 bool CheckAndMask(SDValue LHS, ConstantSDNode *RHS,
256 bool CheckOrMask(SDValue LHS, ConstantSDNode *RHS,
include/llvm/CodeGen/SelectionDAGNodes.h 1607 return cast<ConstantSDNode>(getOperand(Num))->getZExtValue();
1611 return cast<ConstantSDNode>(getOperand(Num))->getAPIntValue();
1690 ConstantSDNode *isConstOrConstSplat(SDValue N, bool AllowUndefs = false,
1695 ConstantSDNode *isConstOrConstSplat(SDValue N, const APInt &DemandedElts,
1965 ConstantSDNode *
1974 ConstantSDNode *
2655 std::function<bool(ConstantSDNode *)> Match,
2664 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match,
2664 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match,
include/llvm/CodeGen/TargetLowering.h 590 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
590 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
3291 bool isExtendedTrueVal(const ConstantSDNode *N, EVT VT, bool SExt) const;
include/llvm/Support/Casting.h 58 return To::classof(&Val);
92 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
218 static typename cast_retty<To, From>::ret_type doit(From &Val) {
219 return cast_convert_val<To, SimpleFrom,
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
248 typename cast_retty<X, const Y>::ret_type>::type
252 X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
331 typename cast_retty<X, const Y>::ret_type>::type
333 return isa<X>(Val) ? cast<X>(Val) : nullptr;
333 return isa<X>(Val) ? cast<X>(Val) : nullptr;
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
338 return isa<X>(Val) ? cast<X>(Val) : nullptr;
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
352 typename cast_retty<X, const Y>::ret_type>::type
354 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
354 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
360 typename cast_retty<X, Y>::ret_type>::type
include/llvm/Support/Recycler.h 83 SubClass *Allocate(AllocatorType &Allocator) {
84 static_assert(alignof(SubClass) <= Align,
86 static_assert(sizeof(SubClass) <= Size,
93 T *Allocate(AllocatorType &Allocator) {
include/llvm/Support/RecyclingAllocator.h 43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); }
lib/CodeGen/SelectionDAG/DAGCombiner.cpp 611 bool isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
622 ConstantSDNode *Mask, SDNode *&NodeToMask);
855 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N))
855 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N))
863 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Op);
863 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Op);
896 auto *C1 = dyn_cast<ConstantSDNode>(N0.getOperand(1));
896 auto *C1 = dyn_cast<ConstantSDNode>(N0.getOperand(1));
897 auto *C2 = dyn_cast<ConstantSDNode>(N1);
897 auto *C2 = dyn_cast<ConstantSDNode>(N1);
1678 if (N0 != N1 && (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1))) {
1678 if (N0 != N1 && (isa<ConstantSDNode>(N0) || !isa<ConstantSDNode>(N1))) {
1911 static ConstantSDNode *getAsNonOpaqueConstant(SDValue N) {
1912 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N);
1912 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N);
2004 auto *CN = dyn_cast<ConstantSDNode>(C);
2004 auto *CN = dyn_cast<ConstantSDNode>(C);
2045 ConstantSDNode *C = isConstOrConstSplat(ConstantOp);
2057 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt);
2150 isa<ConstantSDNode>(N0.getOperand(1)) &&
2509 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2509 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2510 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2510 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2555 if (Force && isa<ConstantSDNode>(V))
2561 ConstantSDNode *Const = isConstOrConstSplat(V.getOperand(1), false);
2664 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2664 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2665 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2665 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2684 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2684 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
2685 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2685 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
2883 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
2898 ConstantSDNode *ShiftAmt = isConstOrConstSplat(N1.getOperand(1));
3103 if (ConstantSDNode *C = isConstOrConstSplat(N1.getOperand(1)))
3139 ConstantSDNode *ShAmtC = isConstOrConstSplat(ShAmt);
3246 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
3345 N0IsConst = isa<ConstantSDNode>(N0);
3347 ConstValue0 = cast<ConstantSDNode>(N0)->getAPIntValue();
3348 N0IsOpaqueConst = cast<ConstantSDNode>(N0)->isOpaque();
3350 N1IsConst = isa<ConstantSDNode>(N1);
3352 ConstValue1 = cast<ConstantSDNode>(N1)->getAPIntValue();
3353 N1IsOpaqueConst = cast<ConstantSDNode>(N1)->isOpaque();
3585 ConstantSDNode *N1C = isConstOrConstSplat(N1);
3602 ConstantSDNode *N0C = isConstOrConstSplat(N0);
3637 ConstantSDNode *N0C = isConstOrConstSplat(N0);
3638 ConstantSDNode *N1C = isConstOrConstSplat(N1);
3781 ConstantSDNode *N0C = isConstOrConstSplat(N0);
3782 ConstantSDNode *N1C = isConstOrConstSplat(N1);
3879 ConstantSDNode *N0C = isConstOrConstSplat(N0);
3880 ConstantSDNode *N1C = isConstOrConstSplat(N1);
4196 if (ConstantSDNode *C2 = isConstOrConstSplat(N1))
4215 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
4216 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
4513 ConstantSDNode *C0 = isConstOrConstSplat(LR);
4514 ConstantSDNode *C1 = isConstOrConstSplat(RR);
4575 if (ConstantSDNode *ADDI = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
4575 if (ConstantSDNode *ADDI = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
4576 if (ConstantSDNode *SRLI = dyn_cast<ConstantSDNode>(N1.getOperand(1))) {
4576 if (ConstantSDNode *SRLI = dyn_cast<ConstantSDNode>(N1.getOperand(1))) {
4609 if (ConstantSDNode *CAnd = dyn_cast<ConstantSDNode>(N1)) {
4609 if (ConstantSDNode *CAnd = dyn_cast<ConstantSDNode>(N1)) {
4610 if (ConstantSDNode *CShift = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
4610 if (ConstantSDNode *CShift = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
4657 bool DAGCombiner::isAndLoadExtLoad(ConstantSDNode *AndC, LoadSDNode *LoadN,
4773 ConstantSDNode *Mask,
4782 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
4782 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
4860 auto *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1));
4860 auto *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1));
4898 if (isa<ConstantSDNode>(Op0))
5010 !isa<ConstantSDNode>(Srl.getOperand(1)))
5066 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
5067 ConstantSDNode *N1C = isConstOrConstSplat(N1);
5140 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
5140 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
5346 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5346 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5359 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
5359 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
5373 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5373 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5374 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
5374 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
5385 ConstantSDNode *N001C = dyn_cast<ConstantSDNode>(N00.getOperand(1));
5385 ConstantSDNode *N001C = dyn_cast<ConstantSDNode>(N00.getOperand(1));
5396 ConstantSDNode *N101C = dyn_cast<ConstantSDNode>(N10.getOperand(1));
5396 ConstantSDNode *N101C = dyn_cast<ConstantSDNode>(N10.getOperand(1));
5456 ConstantSDNode *N1C = nullptr;
5459 N1C = dyn_cast<ConstantSDNode>(N.getOperand(1));
5461 N1C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5490 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5490 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5498 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5498 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5507 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N.getOperand(1));
5507 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N.getOperand(1));
5515 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N.getOperand(1));
5515 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N.getOperand(1));
5534 ConstantSDNode *C = isConstOrConstSplat(N.getOperand(1));
5621 if (const ConstantSDNode *N0O1C =
5623 if (const ConstantSDNode *N1O1C =
5765 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
5766 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
5766 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
5904 ConstantSDNode *OppShiftCst = isConstOrConstSplat(OppShift.getOperand(1));
5944 ConstantSDNode *OppLHSCst = isConstOrConstSplat(OppShiftLHS.getOperand(1));
5946 ConstantSDNode *ExtractFromCst =
6039 if (ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(1))) {
6053 ConstantSDNode *NegC = isConstOrConstSplat(Neg.getOperand(0));
6061 if (ConstantSDNode *PosC = isConstOrConstSplat(Pos.getOperand(1))) {
6093 if (ConstantSDNode *PosC = isConstOrConstSplat(Pos.getOperand(1)))
6357 auto ShiftOp = dyn_cast<ConstantSDNode>(Op->getOperand(1));
6518 ConstantSDNode *ShiftOffset =
6519 dyn_cast<ConstantSDNode>(Value.getOperand(1));
6829 if (isa<ConstantSDNode>(M.getNode()))
6883 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
6884 ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
6949 if (isa<ConstantSDNode>(N01) || isa<ConstantSDNode>(N00)) {
6949 if (isa<ConstantSDNode>(N01) || isa<ConstantSDNode>(N00)) {
6976 ConstantSDNode *XorC = isConstOrConstSplat(N1);
6977 ConstantSDNode *ShiftC = isConstOrConstSplat(N0.getOperand(1));
7006 if (ConstantSDNode *C = isConstOrConstSplat(S.getOperand(1)))
7075 ConstantSDNode *C1Node = isConstOrConstSplat(C1);
7083 ConstantSDNode *ShiftCNode = isConstOrConstSplat(V.getOperand(1));
7167 ConstantSDNode *BinOpCst = getAsNonOpaqueConstant(LHS.getOperand(1));
7178 isa<ConstantSDNode>(BinOpLHSVal.getOperand(1));
7243 if (ConstantSDNode *Cst = isConstOrConstSplat(N1)) {
7316 ConstantSDNode *N1C = isConstOrConstSplat(N1);
7320 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
7446 if (ConstantSDNode *N0C1 = isConstOrConstSplat(N0.getOperand(1))) {
7466 if (ConstantSDNode *N0C1 = isConstOrConstSplat(N0.getOperand(1))) {
7551 ConstantSDNode *N1C = isConstOrConstSplat(N1);
7555 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
7611 const ConstantSDNode *N01C = isConstOrConstSplat(N0.getOperand(1));
7650 if (ConstantSDNode *AddC = isConstOrConstSplat(N0.getOperand(1))) {
7692 if (ConstantSDNode *LargeShift = isConstOrConstSplat(N0Op0.getOperand(1))) {
7736 ConstantSDNode *N1C = isConstOrConstSplat(N1);
7740 ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
7956 if (ConstantSDNode *Cst = isConstOrConstSplat(N2)) {
8226 auto *C1 = dyn_cast<ConstantSDNode>(N1);
8226 auto *C1 = dyn_cast<ConstantSDNode>(N1);
8227 auto *C2 = dyn_cast<ConstantSDNode>(N2);
8227 auto *C2 = dyn_cast<ConstantSDNode>(N2);
8471 auto *C = dyn_cast<ConstantSDNode>(N2.getOperand(1));
8471 auto *C = dyn_cast<ConstantSDNode>(N2.getOperand(1));
8472 auto *NotC = dyn_cast<ConstantSDNode>(Cond1);
8472 auto *NotC = dyn_cast<ConstantSDNode>(Cond1);
8533 ConstantSDNode *BottomHalf = nullptr;
8539 BottomHalf = cast<ConstantSDNode>(Cond.getOperand(i));
8545 ConstantSDNode *TopHalf = nullptr;
8551 TopHalf = cast<ConstantSDNode>(Cond.getOperand(i));
8640 const APInt &C1 = cast<ConstantSDNode>(N1Elt)->getAPIntValue();
8641 const APInt &C2 = cast<ConstantSDNode>(N2Elt)->getAPIntValue();
8810 if (ConstantSDNode *SCCC = dyn_cast<ConstantSDNode>(SCC.getNode())) {
8810 if (ConstantSDNode *SCCC = dyn_cast<ConstantSDNode>(SCC.getNode())) {
8901 if (isa<ConstantSDNode>(N0))
8910 if (isa<ConstantSDNode>(Op1) && isa<ConstantSDNode>(Op2) &&
8910 if (isa<ConstantSDNode>(Op1) && isa<ConstantSDNode>(Op2) &&
8959 APInt C = cast<ConstantSDNode>(Op)->getAPIntValue().zextOrTrunc(EVTBits);
8998 if (!isa<ConstantSDNode>(UseOp))
9210 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
9513 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
9782 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
9822 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1));
9822 auto *AndC = cast<ConstantSDNode>(N0.getOperand(1));
9837 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
9921 isa<ConstantSDNode>(N0.getOperand(1)) &&
9931 if (cast<ConstantSDNode>(ShAmt)->getAPIntValue().ugt(KnownZeroBits))
9998 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
10192 auto *N01 = dyn_cast<ConstantSDNode>(N0.getOperand(1));
10192 auto *N01 = dyn_cast<ConstantSDNode>(N0.getOperand(1));
10205 auto AndC = dyn_cast<ConstantSDNode>(N->getOperand(1));
10227 if (auto *ConstShift = dyn_cast<ConstantSDNode>(SRL.getOperand(1))) {
10227 if (auto *ConstShift = dyn_cast<ConstantSDNode>(SRL.getOperand(1))) {
10259 isa<ConstantSDNode>(Mask->getOperand(1))) {
10261 cast<ConstantSDNode>(Mask->getOperand(1))->getAPIntValue();
10279 if (ConstantSDNode *N01 = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
10279 if (ConstantSDNode *N01 = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
10447 if (auto *ShAmt = dyn_cast<ConstantSDNode>(N0.getOperand(1)))
10447 if (auto *ShAmt = dyn_cast<ConstantSDNode>(N0.getOperand(1)))
10600 if (isa<ConstantSDNode>(EltNo) && isTypeLegal(NVT)) {
10601 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
10936 ConstantSDNode *LogicOp1 = isConstOrConstSplat(N0.getOperand(1), true);
10973 if (isa<ConstantSDNode>(N0) || isa<ConstantFPSDNode>(N0)) {
10978 (isa<ConstantSDNode>(N0) && VT.isFloatingPoint() && !VT.isVector() &&
11274 NewBits |= cast<ConstantSDNode>(Op)->getAPIntValue().
11301 APInt OpVal = cast<ConstantSDNode>(Op)->
13358 const APInt &AndConst = cast<ConstantSDNode>(AndOp1)->getAPIntValue();
13361 cast<ConstantSDNode>(Op1)->getAPIntValue() == AndConst.logBase2()) {
13473 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
13473 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
13482 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
13482 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
13546 if (isa<ConstantSDNode>(BasePtr)) {
13590 if (isa<ConstantSDNode>(Offset))
13610 if (!isa<ConstantSDNode>(Op1)) {
13689 ConstantSDNode *CN =
13690 cast<ConstantSDNode>(OtherUses[i]->getOperand(OffsetIdx));
13693 APInt Offset1 = cast<ConstantSDNode>(Offset)->getAPIntValue();
13867 ConstantSDNode *ConstInc = cast<ConstantSDNode>(Inc);
13867 ConstantSDNode *ConstInc = cast<ConstantSDNode>(Inc);
14068 cast<ConstantSDNode>(LD->getOperand(2))->isOpaque();
14633 isa<ConstantSDNode>(User->getOperand(1))) {
14709 !isa<ConstantSDNode>(V->getOperand(1)) ||
14726 uint64_t NotMask = ~cast<ConstantSDNode>(V->getOperand(1))->getSExtValue();
14890 APInt Imm = cast<ConstantSDNode>(N1)->getAPIntValue();
15144 } else if (auto *C = dyn_cast<ConstantSDNode>(Val))
15144 } else if (auto *C = dyn_cast<ConstantSDNode>(Val))
15209 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val)) {
15209 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val)) {
15243 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal);
15243 ConstantSDNode *C = cast<ConstantSDNode>(StoredVal);
15279 bool IsConstantSrc = isa<ConstantSDNode>(Val) || isa<ConstantFPSDNode>(Val);
15341 if (!(isa<ConstantSDNode>(OtherBC) || isa<ConstantFPSDNode>(OtherBC)))
15510 bool IsConstantSrc = isa<ConstantSDNode>(StoredVal) ||
15597 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal))
15597 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(StoredVal))
16192 (!isa<ConstantSDNode>(Value) ||
16193 !cast<ConstantSDNode>(Value)->isOpaque())) {
16267 if (auto *C1 = dyn_cast<ConstantSDNode>(ChainValue)) {
16267 if (auto *C1 = dyn_cast<ConstantSDNode>(ChainValue)) {
16268 if (auto *C = dyn_cast<ConstantSDNode>(Value)) {
16268 if (auto *C = dyn_cast<ConstantSDNode>(Value)) {
16445 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(Op1.getOperand(1));
16445 ConstantSDNode *ShAmt = dyn_cast<ConstantSDNode>(Op1.getOperand(1));
16505 isa<ConstantSDNode>(InsertVal.getOperand(1))) {
16525 auto *ExtrIndex = cast<ConstantSDNode>(InsertVal.getOperand(1));
16525 auto *ExtrIndex = cast<ConstantSDNode>(InsertVal.getOperand(1));
16605 auto *IndexC = dyn_cast<ConstantSDNode>(EltNo);
16605 auto *IndexC = dyn_cast<ConstantSDNode>(EltNo);
16629 && isa<ConstantSDNode>(InVec.getOperand(2))) {
16699 if (auto *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo)) {
16699 if (auto *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo)) {
16766 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
16766 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
16827 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
16827 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
16939 isa<ConstantSDNode>(Use->getOperand(1));
16943 auto *CstElt = cast<ConstantSDNode>(Use->getOperand(1));
16943 auto *CstElt = cast<ConstantSDNode>(Use->getOperand(1));
17312 !isa<ConstantSDNode>(Zext.getOperand(0).getOperand(1)) ||
17408 !isa<ConstantSDNode>(Op.getOperand(1)))
17591 if (auto *C = dyn_cast<ConstantSDNode>(Op.getOperand(0).getOperand(1)))
17591 if (auto *C = dyn_cast<ConstantSDNode>(Op.getOperand(0).getOperand(1)))
17670 if (auto CNode = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
17805 if (!isa<ConstantSDNode>(Op.getOperand(1)))
18000 auto *CS = dyn_cast<ConstantSDNode>(Op.getOperand(1));
18000 auto *CS = dyn_cast<ConstantSDNode>(Op.getOperand(1));
18024 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
18024 auto *IndexC = dyn_cast<ConstantSDNode>(Index);
18078 auto *ExtractIndexC = dyn_cast<ConstantSDNode>(Extract->getOperand(1));
18078 auto *ExtractIndexC = dyn_cast<ConstantSDNode>(Extract->getOperand(1));
18195 auto *ExtIdx = dyn_cast<ConstantSDNode>(Extract->getOperand(1));
18195 auto *ExtIdx = dyn_cast<ConstantSDNode>(Extract->getOperand(1));
18238 V.hasOneUse() && isa<ConstantSDNode>(V.getOperand(1))) {
18249 if (isa<ConstantSDNode>(Index) && V.getOpcode() == ISD::BITCAST &&
18278 if (V.getOpcode() == ISD::CONCAT_VECTORS && isa<ConstantSDNode>(Index) &&
18291 if (auto *IdxC = dyn_cast<ConstantSDNode>(Index)) {
18291 if (auto *IdxC = dyn_cast<ConstantSDNode>(Index)) {
18334 auto *ExtIdx = dyn_cast<ConstantSDNode>(Index);
18334 auto *ExtIdx = dyn_cast<ConstantSDNode>(Index);
18335 auto *InsIdx = dyn_cast<ConstantSDNode>(V.getOperand(2));
18335 auto *InsIdx = dyn_cast<ConstantSDNode>(V.getOperand(2));
18545 if (!Op.isUndef() && !isa<ConstantSDNode>(Op) && !isa<ConstantFPSDNode>(Op))
18796 auto *InsIndexC = dyn_cast<ConstantSDNode>(Op0.getOperand(2));
18796 auto *InsIndexC = dyn_cast<ConstantSDNode>(Op0.getOperand(2));
19201 if (ConstantSDNode *C0 = dyn_cast<ConstantSDNode>(EltNo)) {
19201 if (ConstantSDNode *C0 = dyn_cast<ConstantSDNode>(EltNo)) {
19307 if (!isa<ConstantSDNode>(N2))
19310 uint64_t InsIdx = cast<ConstantSDNode>(N2)->getZExtValue();
19355 isa<ConstantSDNode>(N0.getOperand(2))) {
19374 Ops[cast<ConstantSDNode>(N2)->getZExtValue() / Factor] = N1;
19401 ConstantSDNode *AndConst = getAsNonOpaqueConstant(N0.getOperand(1));
19482 if (isa<ConstantSDNode>(Elt))
19483 Bits = cast<ConstantSDNode>(Elt)->getAPIntValue();
19937 auto *N2C = dyn_cast<ConstantSDNode>(N2.getNode());
19937 auto *N2C = dyn_cast<ConstantSDNode>(N2.getNode());
20038 auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode());
20038 auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode());
20039 auto *N2C = dyn_cast<ConstantSDNode>(N2.getNode());
20039 auto *N2C = dyn_cast<ConstantSDNode>(N2.getNode());
20040 auto *N3C = dyn_cast<ConstantSDNode>(N3.getNode());
20040 auto *N3C = dyn_cast<ConstantSDNode>(N3.getNode());
20045 if (auto *SCCC = dyn_cast<ConstantSDNode>(SCC)) {
20045 if (auto *SCCC = dyn_cast<ConstantSDNode>(SCC)) {
20073 auto *ConstAndRHS = dyn_cast<ConstantSDNode>(N0->getOperand(1));
20073 auto *ConstAndRHS = dyn_cast<ConstantSDNode>(N0->getOperand(1));
20153 if (auto *ValueOnZeroC = dyn_cast<ConstantSDNode>(ValueOnZero)) {
20153 if (auto *ValueOnZeroC = dyn_cast<ConstantSDNode>(ValueOnZero)) {
20208 ConstantSDNode *C = isConstOrConstSplat(N->getOperand(1));
20489 if (auto *C = dyn_cast<ConstantSDNode>(LSN->getOffset()))
20489 if (auto *C = dyn_cast<ConstantSDNode>(LSN->getOffset()))
lib/CodeGen/SelectionDAG/InstrEmitter.cpp 371 } else if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
371 } else if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
498 unsigned SubIdx = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
553 unsigned SubIdx = cast<ConstantSDNode>(N2)->getZExtValue();
584 const ConstantSDNode *SD = cast<ConstantSDNode>(N0);
584 const ConstantSDNode *SD = cast<ConstantSDNode>(N0);
613 unsigned DstRCIdx = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
631 unsigned DstRCIdx = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue();
652 unsigned SubIdx = cast<ConstantSDNode>(Op)->getZExtValue();
1065 cast<ConstantSDNode>(Node->getOperand(InlineAsm::Op_ExtraInfo))->
1078 cast<ConstantSDNode>(Node->getOperand(i))->getZExtValue();
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 190 SDValue ExpandConstant(ConstantSDNode *CP);
346 SDValue SelectionDAGLegalize::ExpandConstant(ConstantSDNode *CP) {
399 if (ConstantSDNode *InsertPos = dyn_cast<ConstantSDNode>(Idx)) {
399 if (ConstantSDNode *InsertPos = dyn_cast<ConstantSDNode>(Idx)) {
1598 unsigned Align = cast<ConstantSDNode>(Tmp3)->getZExtValue();
1917 if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
1943 } else if (ConstantSDNode *V =
1944 dyn_cast<ConstantSDNode>(Node->getOperand(i))) {
3032 if (cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue()) {
3169 ConstantSDNode *CP = cast<ConstantSDNode>(Node);
3169 ConstantSDNode *CP = cast<ConstantSDNode>(Node);
3493 isa<ConstantSDNode>(Tmp2.getOperand(1)) &&
3494 cast<ConstantSDNode>(Tmp2.getOperand(1))->getZExtValue() == 1))
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp 2147 if (isa<ConstantSDNode>(N->getOperand(1))) {
2153 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp 2461 auto Constant = cast<ConstantSDNode>(N);
3160 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
3160 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
3654 if (ConstantSDNode *RHSCST = dyn_cast<ConstantSDNode>(RHSLo)) {
3654 if (ConstantSDNode *RHSCST = dyn_cast<ConstantSDNode>(RHSLo)) {
3674 if (ConstantSDNode *CST = dyn_cast<ConstantSDNode>(NewRHS))
3674 if (ConstantSDNode *CST = dyn_cast<ConstantSDNode>(NewRHS))
3721 ConstantSDNode *LoCmpC = dyn_cast<ConstantSDNode>(LoCmp.getNode());
3721 ConstantSDNode *LoCmpC = dyn_cast<ConstantSDNode>(LoCmp.getNode());
3722 ConstantSDNode *HiCmpC = dyn_cast<ConstantSDNode>(HiCmp.getNode());
3722 ConstantSDNode *HiCmpC = dyn_cast<ConstantSDNode>(HiCmp.getNode());
lib/CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp 196 SDValue Part = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue() ?
403 return cast<ConstantSDNode>(N->getOperand(1))->getZExtValue() ? Hi : Lo;
lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp 538 unsigned Op = !cast<ConstantSDNode>(Arg)->isNullValue();
1158 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
1182 if (ConstantSDNode *ConstIdx = dyn_cast<ConstantSDNode>(Idx)) {
1182 if (ConstantSDNode *ConstIdx = dyn_cast<ConstantSDNode>(Idx)) {
1455 if (ConstantSDNode *CIdx = dyn_cast<ConstantSDNode>(Idx)) {
1455 if (ConstantSDNode *CIdx = dyn_cast<ConstantSDNode>(Idx)) {
2207 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
2225 if (isa<ConstantSDNode>(Idx)) {
2226 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
3675 uint64_t IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp 337 if (isa<ConstantSDNode>(Op.getNode()))
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp 491 cast<ConstantSDNode>(Node->getOperand(i))->getZExtValue();
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp 333 unsigned DstRCIdx = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue();
1371 cast<ConstantSDNode>(Node->getOperand(i))->getZExtValue();
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h 66 if (isa<ConstantSDNode>(Node)) return true;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp 178 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(NotZero)) {
178 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(NotZero)) {
217 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op)) {
217 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Op)) {
240 if (!isa<ConstantSDNode>(Op))
269 std::function<bool(ConstantSDNode *)> Match,
272 if (auto *Cst = dyn_cast<ConstantSDNode>(Op))
272 if (auto *Cst = dyn_cast<ConstantSDNode>(Op))
287 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i));
287 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i));
296 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match,
296 std::function<bool(ConstantSDNode *, ConstantSDNode *)> Match,
302 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS))
302 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS))
303 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS))
303 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS))
317 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp);
317 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp);
318 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp);
318 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp);
481 const ConstantSDNode *C = cast<ConstantSDNode>(N);
481 const ConstantSDNode *C = cast<ConstantSDNode>(N);
1275 N = newSDNode<ConstantSDNode>(isT, isO, Elt, EltVT);
1695 if (auto *C = dyn_cast<ConstantSDNode>(Splat))
1695 if (auto *C = dyn_cast<ConstantSDNode>(Splat))
2014 if (ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2)) {
2014 if (ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2)) {
2016 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) {
2016 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1)) {
2146 auto *CV = cast<ConstantSDNode>(V.getNode());
2146 auto *CV = cast<ConstantSDNode>(V.getNode());
2163 if (auto *RHSC = dyn_cast<ConstantSDNode>(V.getOperand(1))) {
2163 if (auto *RHSC = dyn_cast<ConstantSDNode>(V.getOperand(1))) {
2180 if (ConstantSDNode *RHSC = isConstOrConstSplat(V.getOperand(1))) {
2292 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(V.getOperand(1));
2292 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(V.getOperand(1));
2386 if (ConstantSDNode *SA = isConstOrConstSplat(V.getOperand(1))) {
2404 auto *SA = dyn_cast<ConstantSDNode>(BV->getOperand(i));
2404 auto *SA = dyn_cast<ConstantSDNode>(BV->getOperand(i));
2438 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
2438 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
2561 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
2561 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
2594 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
2594 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
2829 if (ConstantSDNode *C = isConstOrConstSplat(Op.getOperand(2), DemandedElts)) {
3090 if (ConstantSDNode *Rem = isConstOrConstSplat(Op.getOperand(1))) {
3114 if (ConstantSDNode *Rem = isConstOrConstSplat(Op.getOperand(1))) {
3161 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo);
3161 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo);
3180 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo);
3180 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo);
3275 ConstantSDNode *CstLow = nullptr, *CstHigh = nullptr;
3366 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Val))
3366 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(Val))
3372 auto *C = isConstOrConstSplat(Val.getOperand(0));
3380 auto *C = isConstOrConstSplat(Val.getOperand(0));
3388 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(E))
3388 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(E))
3419 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
3419 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
3559 if (ConstantSDNode *C =
3567 if (ConstantSDNode *C =
3607 ConstantSDNode *CstLow = nullptr, *CstHigh = nullptr;
3660 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
3660 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
3681 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
3681 if (ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
3705 if (ConstantSDNode *CLHS = isConstOrConstSplat(Op.getOperand(0)))
3764 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo);
3764 ConstantSDNode *CEltNo = dyn_cast<ConstantSDNode>(EltNo);
3813 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo);
3813 ConstantSDNode *ConstEltNo = dyn_cast<ConstantSDNode>(EltNo);
3824 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
3824 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
3857 auto *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
3857 auto *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
3970 !isa<ConstantSDNode>(Op.getOperand(1)))
4170 !isa<ConstantSDNode>(Ops[i].getOperand(1)) ||
4171 cast<ConstantSDNode>(Ops[i].getOperand(1))->getAPIntValue() != i) {
4216 !isa<ConstantSDNode>(Op.getOperand(1)) ||
4286 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Operand)) {
4286 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Operand)) {
4643 isa<ConstantSDNode>(Operand.getOperand(1)) &&
4737 EVT VT, const ConstantSDNode *C1,
4738 const ConstantSDNode *C2) {
4756 auto *C2 = dyn_cast<ConstantSDNode>(N2);
4806 if (auto *C1 = dyn_cast<ConstantSDNode>(N1)) {
4806 if (auto *C1 = dyn_cast<ConstantSDNode>(N1)) {
4807 if (auto *C2 = dyn_cast<ConstantSDNode>(N2)) {
4807 if (auto *C2 = dyn_cast<ConstantSDNode>(N2)) {
5038 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
5038 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
5039 ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2);
5039 ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2);
5220 ConstantSDNode *C = cast<ConstantSDNode>(Op);
5220 ConstantSDNode *C = cast<ConstantSDNode>(Op);
5275 ConstantSDNode *N1Op2C = dyn_cast<ConstantSDNode>(N1Op2);
5275 ConstantSDNode *N1Op2C = dyn_cast<ConstantSDNode>(N1Op2);
5507 ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N3);
5507 ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N3);
5536 if (isa<ConstantSDNode>(Index)) {
5632 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Value)) {
5632 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Value)) {
5727 SrcDelta = cast<ConstantSDNode>(Src.getOperand(1))->getZExtValue();
6085 isa<ConstantSDNode>(Src) && cast<ConstantSDNode>(Src)->isNullValue();
6085 isa<ConstantSDNode>(Src) && cast<ConstantSDNode>(Src)->isNullValue();
6168 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6168 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6284 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6284 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6387 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6387 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
6668 !isa<ConstantSDNode>(Ptr.getOperand(1)) ||
6675 Offset + cast<ConstantSDNode>(Ptr.getOperand(1))->getSExtValue());
6686 if (ConstantSDNode *OffsetNode = dyn_cast<ConstantSDNode>(OffsetOp))
6686 if (ConstantSDNode *OffsetNode = dyn_cast<ConstantSDNode>(OffsetOp))
7114 if (auto *CondC = dyn_cast<ConstantSDNode>(Cond))
7114 if (auto *CondC = dyn_cast<ConstantSDNode>(Cond))
8671 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8671 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8681 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8681 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8686 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8686 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
8713 ConstantSDNode *C =
8718 ConstantSDNode *llvm::isConstOrConstSplat(SDValue N, bool AllowUndefs,
8720 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N))
8720 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N))
8725 ConstantSDNode *CN = BV->getConstantSplatNode(&UndefElements);
8741 ConstantSDNode *llvm::isConstOrConstSplat(SDValue N, const APInt &DemandedElts,
8744 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N))
8744 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N))
8749 ConstantSDNode *CN = BV->getConstantSplatNode(DemandedElts, &UndefElements);
8798 ConstantSDNode *C = isConstOrConstSplat(N, AllowUndefs);
8805 ConstantSDNode *C = isConstOrConstSplat(N);
8812 ConstantSDNode *C = isConstOrConstSplat(N);
9391 else if (auto *CN = dyn_cast<ConstantSDNode>(OpVal))
9391 else if (auto *CN = dyn_cast<ConstantSDNode>(OpVal))
9466 ConstantSDNode *
9469 return dyn_cast_or_null<ConstantSDNode>(
9473 ConstantSDNode *
9475 return dyn_cast_or_null<ConstantSDNode>(getSplatValue(UndefElements));
9539 if (isa<ConstantSDNode>(N))
lib/CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp 179 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset()))
179 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset()))
184 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset()))
184 if (auto *C = dyn_cast<ConstantSDNode>(N->getOffset()))
195 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1)))
195 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1)))
203 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) {
203 if (auto *C = dyn_cast<ConstantSDNode>(Base->getOperand(1))) {
214 if (auto *C = dyn_cast<ConstantSDNode>(LSBase->getOffset())) {
214 if (auto *C = dyn_cast<ConstantSDNode>(LSBase->getOffset())) {
255 !isa<ConstantSDNode>(Index->getOperand(1)))
258 Offset += cast<ConstantSDNode>(Index->getOperand(1))->getSExtValue();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp 1421 if (isa<ConstantSDNode>(N) || isa<ConstantFPSDNode>(N)) {
5342 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
5342 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
7992 cast<ConstantSDNode>(AsmNodeOperands[CurOp])->getZExtValue();
8113 OpInfo.CallOperand && !isa<ConstantSDNode>(OpInfo.CallOperand))
8252 cast<ConstantSDNode>(AsmNodeOperands[CurOp])->getZExtValue();
8318 if (isa<ConstantSDNode>(InOperandVal)) {
8671 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(OpVal)) {
8671 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(OpVal)) {
8715 cast<ConstantSDNode>(IDVal)->getZExtValue(), DL, MVT::i64));
8718 cast<ConstantSDNode>(NBytesVal)->getZExtValue(), DL,
8765 if (auto* ConstCallee = dyn_cast<ConstantSDNode>(Callee))
8765 if (auto* ConstCallee = dyn_cast<ConstantSDNode>(Callee))
8775 unsigned NumArgs = cast<ConstantSDNode>(NArgVal)->getZExtValue();
8810 cast<ConstantSDNode>(IDVal)->getZExtValue(), dl, MVT::i64));
8813 cast<ConstantSDNode>(NBytesVal)->getZExtValue(), dl,
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp 115 if (cast<ConstantSDNode>(this)->isOpaque())
145 unsigned IID = cast<ConstantSDNode>(getOperand(OpNo))->getZExtValue();
157 if (cast<ConstantSDNode>(this)->isOpaque())
568 } else if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
568 } else if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
739 if (!(isa<ConstantSDNode>(this) || (isa<ConstantFPSDNode>(this))))
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp 1971 bool SelectionDAGISel::CheckAndMask(SDValue LHS, ConstantSDNode *RHS,
2000 bool SelectionDAGISel::CheckOrMask(SDValue LHS, ConstantSDNode *RHS,
2045 unsigned Flags = cast<ConstantSDNode>(InOps[i])->getZExtValue();
2059 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2062 Flags = cast<ConstantSDNode>(InOps[CurOp])->getZExtValue();
2558 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
2558 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
2579 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
2579 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
2592 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
2592 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
3238 const ConstantInt *Val=cast<ConstantSDNode>(Imm)->getConstantIntValue();
3624 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
3624 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
3654 cast<ConstantSDNode>(N->getOperand(HasInputChain))->getZExtValue();
lib/CodeGen/SelectionDAG/StatepointLowering.cpp 227 if (isa<ConstantSDNode>(Incoming) || isa<FrameIndexSDNode>(Incoming)) {
423 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Incoming)) {
423 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Incoming)) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp 484 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
484 auto *Op1C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
706 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
706 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
780 Known.One = cast<ConstantSDNode>(Op)->getAPIntValue();
839 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
839 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
884 if (isa<ConstantSDNode>(Op.getOperand(2))) {
916 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
916 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
1015 if (ConstantSDNode *RHSC = isConstOrConstSplat(Op1)) {
1179 if (ConstantSDNode *C = isConstOrConstSplat(Op1)) {
1277 if (ConstantSDNode *SA = isConstOrConstSplat(Op1, DemandedElts)) {
1292 if (ConstantSDNode *SA2 =
1345 if (ConstantSDNode *SA2 =
1374 if (ConstantSDNode *SA = isConstOrConstSplat(Op1, DemandedElts)) {
1396 if (ConstantSDNode *SA2 =
1440 if (ConstantSDNode *SA = isConstOrConstSplat(Op1, DemandedElts)) {
1499 if (ConstantSDNode *SA = isConstOrConstSplat(Op2, DemandedElts)) {
1756 auto *ShAmt = dyn_cast<ConstantSDNode>(Src.getOperand(1));
1756 auto *ShAmt = dyn_cast<ConstantSDNode>(Src.getOperand(1));
1807 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx))
1807 if (auto *CIdx = dyn_cast<ConstantSDNode>(Idx))
1967 ConstantSDNode *C = isConstOrConstSplat(Op1);
2004 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op))
2004 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op))
2058 auto *C = dyn_cast<ConstantSDNode>(Elt);
2058 auto *C = dyn_cast<ConstantSDNode>(Elt);
2260 if (!isa<ConstantSDNode>(Op.getOperand(2)))
2295 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
2295 ConstantSDNode *SubIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
2313 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
2313 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
2706 if (auto *CN = dyn_cast<ConstantSDNode>(N)) {
2709 auto *CN = BV->getConstantSplatNode();
2739 const ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N);
2739 const ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N);
2759 bool TargetLowering::isExtendedTrueVal(const ConstantSDNode *N, EVT VT,
2824 auto *YConst = dyn_cast<ConstantSDNode>(Y);
2824 auto *YConst = dyn_cast<ConstantSDNode>(Y);
2851 ConstantSDNode *C1;
2852 if (!(C1 = dyn_cast<ConstantSDNode>(N1)))
2860 ConstantSDNode *C01;
2861 if (!(C01 = dyn_cast<ConstantSDNode>(N0->getOperand(1))))
2969 ConstantSDNode *CC =
2975 ConstantSDNode *XC =
3080 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3080 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3158 if (auto *C = dyn_cast<ConstantSDNode>(N0->getOperand(1)))
3158 if (auto *C = dyn_cast<ConstantSDNode>(N0->getOperand(1)))
3243 isa<ConstantSDNode>(N0.getOperand(1))) {
3402 isa<ConstantSDNode>(N0.getOperand(1)) &&
3403 cast<ConstantSDNode>(N0.getOperand(1))->isOne()) {
3443 isa<ConstantSDNode>(Op0.getOperand(1)) &&
3444 cast<ConstantSDNode>(Op0.getOperand(1))->isOne()) {
3486 if (auto *N1C = isConstOrConstSplat(N1)) {
3608 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3608 if (auto *N1C = dyn_cast<ConstantSDNode>(N1.getNode())) {
3618 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3618 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3648 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3648 if (auto *AndRHS = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3801 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) {
3801 if (auto *RHSC = dyn_cast<ConstantSDNode>(N1)) {
3802 if (auto *LHSR = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3802 if (auto *LHSR = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
3825 if (auto *SUBC = dyn_cast<ConstantSDNode>(N0.getOperand(0))) {
3825 if (auto *SUBC = dyn_cast<ConstantSDNode>(N0.getOperand(0))) {
3949 if (auto *V = dyn_cast<ConstantSDNode>(N2)) {
3949 if (auto *V = dyn_cast<ConstantSDNode>(N2)) {
3954 if (auto *V = dyn_cast<ConstantSDNode>(N1)) {
3954 if (auto *V = dyn_cast<ConstantSDNode>(N1)) {
4058 ConstantSDNode *C;
4073 } else if ((C = dyn_cast<ConstantSDNode>(Op)) &&
4096 if ((C = dyn_cast<ConstantSDNode>(Op.getOperand(0))))
4100 (C = dyn_cast<ConstantSDNode>(Op.getOperand(1))))
4947 ConstantSDNode *CompTarget = isConstOrConstSplat(CompTargetNode);
5120 ConstantSDNode *CompTarget = isConstOrConstSplat(CompTargetNode);
5333 if (!isa<ConstantSDNode>(Op.getOperand(0))) {
6777 if (isa<ConstantSDNode>(Idx))
6864 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
6864 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
7181 if (ConstantSDNode *RHSC = isConstOrConstSplat(RHS)) {
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp 150 if (auto CN = dyn_cast<ConstantSDNode>(Opnd0))
247 if (const ConstantSDNode *C = dyn_cast<const ConstantSDNode>(N)) {
247 if (const ConstantSDNode *C = dyn_cast<const ConstantSDNode>(N)) {
303 if (!isa<ConstantSDNode>(N.getNode()))
306 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue();
333 if (!isa<ConstantSDNode>(N.getNode()))
337 uint64_t Immed = cast<ConstantSDNode>(N.getNode())->getZExtValue();
379 auto *CSD = dyn_cast<ConstantSDNode>(V.getOperand(1));
379 auto *CSD = dyn_cast<ConstantSDNode>(V.getOperand(1));
435 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
435 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
482 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
482 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
516 ConstantSDNode *DLidx = cast<ConstantSDNode>(DL->getOperand(1).getNode());
516 ConstantSDNode *DLidx = cast<ConstantSDNode>(DL->getOperand(1).getNode());
517 ConstantSDNode *EVidx = cast<ConstantSDNode>(EV.getOperand(1).getNode());
517 ConstantSDNode *EVidx = cast<ConstantSDNode>(EV.getOperand(1).getNode());
655 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
655 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
733 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
733 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
812 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
812 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
851 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
851 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
888 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
888 ConstantSDNode *CSD = dyn_cast<ConstantSDNode>(N.getOperand(1));
928 if (isa<ConstantSDNode>(LHS) || isa<ConstantSDNode>(RHS))
928 if (isa<ConstantSDNode>(LHS) || isa<ConstantSDNode>(RHS))
1035 if (isa<ConstantSDNode>(RHS)) {
1036 int64_t ImmOff = (int64_t)cast<ConstantSDNode>(RHS)->getZExtValue();
1217 ConstantSDNode *OffsetOp = cast<ConstantSDNode>(LD->getOffset());
1217 ConstantSDNode *OffsetOp = cast<ConstantSDNode>(LD->getOffset());
1395 cast<ConstantSDNode>(N->getOperand(NumVecs + 2))->getZExtValue();
1435 cast<ConstantSDNode>(N->getOperand(NumVecs + 1))->getZExtValue();
1487 cast<ConstantSDNode>(N->getOperand(NumVecs + 2))->getZExtValue();
1519 cast<ConstantSDNode>(N->getOperand(NumVecs + 1))->getZExtValue();
1829 Immr = cast<ConstantSDNode>(N->getOperand(1).getNode())->getZExtValue();
1830 Imms = cast<ConstantSDNode>(N->getOperand(2).getNode())->getZExtValue();
1902 cast<const ConstantSDNode>(Op.getOperand(1).getNode())->getZExtValue();
1938 cast<const ConstantSDNode>(Op.getOperand(1).getNode())->getZExtValue();
1940 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1948 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1976 cast<const ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1978 cast<const ConstantSDNode>(Op.getOperand(3).getNode())->getZExtValue();
2744 uint64_t Immed = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue();
2827 cast<ConstantSDNode>(IRG_SP->getOperand(1))->getZExtValue() !=
2837 int TagOffset = cast<ConstantSDNode>(N->getOperand(3))->getZExtValue();
2857 int TagOffset = cast<ConstantSDNode>(N->getOperand(3))->getZExtValue();
2940 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
2940 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
2971 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
3315 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue();
3361 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
lib/Target/AArch64/AArch64ISelLowering.cpp 1043 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
1043 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
1075 ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(1));
1075 ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(1));
1092 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1942 if (ConstantSDNode *MaskCst = dyn_cast<ConstantSDNode>(V.getOperand(1))) {
1942 if (ConstantSDNode *MaskCst = dyn_cast<ConstantSDNode>(V.getOperand(1))) {
1958 if (ConstantSDNode *ShiftCst = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
1958 if (ConstantSDNode *ShiftCst = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
1973 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) {
1973 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) {
2038 if (!isa<ConstantSDNode>(RHS) ||
2039 !isLegalArithImmed(cast<ConstantSDNode>(RHS)->getZExtValue())) {
2050 if ((CC == ISD::SETEQ || CC == ISD::SETNE) && isa<ConstantSDNode>(RHS)) {
2051 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS);
2051 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS);
2073 int16_t ValueofRHS = cast<ConstantSDNode>(RHS)->getZExtValue();
2281 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal);
2281 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal);
2282 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal);
2282 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal);
2381 unsigned IsWrite = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
2382 unsigned Locality = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue();
2383 unsigned IsData = cast<ConstantSDNode>(Op.getOperand(4))->getZExtValue();
2656 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Elt)) {
2656 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Elt)) {
2689 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(i));
2689 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(i));
2821 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
4732 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS);
4732 const ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS);
4740 isa<ConstantSDNode>(LHS.getOperand(1)) &&
4756 isa<ConstantSDNode>(LHS.getOperand(1)) &&
5048 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal);
5048 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal);
5049 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal);
5049 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal);
5131 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS);
5131 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS);
5513 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
5579 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
6114 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
6114 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
6291 !isa<ConstantSDNode>(V.getOperand(1))) {
6307 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue();
6421 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue();
6952 !isa<ConstantSDNode>(V1.getOperand(Lane)))
6962 Lane += cast<ConstantSDNode>(V1.getOperand(1))->getZExtValue();
7333 ConstantSDNode *FirstElt = dyn_cast<ConstantSDNode>(Bvec->getOperand(0));
7333 ConstantSDNode *FirstElt = dyn_cast<ConstantSDNode>(Bvec->getOperand(0));
7339 if (dyn_cast<ConstantSDNode>(Bvec->getOperand(i)) != FirstElt)
7351 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
7386 ConstantSDNode *C2node = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
7386 ConstantSDNode *C2node = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
7485 if (auto *CstLane = dyn_cast<ConstantSDNode>(Lane)) {
7485 if (auto *CstLane = dyn_cast<ConstantSDNode>(Lane)) {
7554 if (ConstantSDNode *Const = BVN->getConstantSplatNode()) {
7596 if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
7599 if (isa<ConstantSDNode>(V) || isa<ConstantFPSDNode>(V)) {
7622 if (isOnlyLowElement && !(NumElts == 1 && isa<ConstantSDNode>(Value))) {
7637 if (!isa<ConstantSDNode>(N->getOperand(1)))
7754 if (!isa<ConstantSDNode>(V) && !isa<ConstantFPSDNode>(V))
7830 ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Op.getOperand(2));
7830 ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Op.getOperand(2));
7864 ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Op.getOperand(1));
7864 ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Op.getOperand(1));
7902 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(1));
7902 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(1));
8322 unsigned Align = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
9224 isa<ConstantSDNode>(N->getOperand(1))) {
9228 isa<ConstantSDNode>(N->getOperand(0)->getOperand(1)))
9284 auto *ShiftAmt = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
9284 auto *ShiftAmt = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
9305 if (ConstantSDNode *Y1C = dyn_cast<ConstantSDNode>(N1.getOperand(1)))
9305 if (ConstantSDNode *Y1C = dyn_cast<ConstantSDNode>(N1.getOperand(1)))
9382 if (!isa<ConstantSDNode>(N->getOperand(1)))
9385 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(1));
9385 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(1));
9715 if (!isa<ConstantSDNode>(N.getOperand(1)))
9798 ConstantSDNode *CN0 = dyn_cast<ConstantSDNode>(BVN0->getOperand(k));
9798 ConstantSDNode *CN0 = dyn_cast<ConstantSDNode>(BVN0->getOperand(k));
9799 ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(BVN1->getOperand(k));
9799 ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(BVN1->getOperand(k));
9888 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
9888 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
9930 uint64_t idx = cast<ConstantSDNode>(Op0->getOperand(1))->getZExtValue();
10153 return cast<ConstantSDNode>(N.getOperand(1))->getAPIntValue() ==
10210 cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue());
10215 ConstantSDNode *TValue = dyn_cast<ConstantSDNode>(Op.getOperand(0));
10215 ConstantSDNode *TValue = dyn_cast<ConstantSDNode>(Op.getOperand(0));
10216 ConstantSDNode *FValue = dyn_cast<ConstantSDNode>(Op.getOperand(1));
10216 ConstantSDNode *FValue = dyn_cast<ConstantSDNode>(Op.getOperand(1));
10389 } else if (ConstantSDNode *CVN = dyn_cast<ConstantSDNode>(N->getOperand(2))) {
10389 } else if (ConstantSDNode *CVN = dyn_cast<ConstantSDNode>(N->getOperand(2))) {
10450 ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(AndN.getOperand(1));
10450 ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(AndN.getOperand(1));
10645 isa<ConstantSDNode>(BasePtr->getOperand(1))) {
10646 BaseOffset = cast<ConstantSDNode>(BasePtr->getOperand(1))->getSExtValue();
10778 ConstantSDNode *CIndex = dyn_cast<ConstantSDNode>(StVal.getOperand(2));
10778 ConstantSDNode *CIndex = dyn_cast<ConstantSDNode>(StVal.getOperand(2));
10886 auto *LaneC = dyn_cast<ConstantSDNode>(Lane);
10886 auto *LaneC = dyn_cast<ConstantSDNode>(Lane);
10919 if (ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode())) {
10919 if (ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode())) {
11037 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
11092 if (ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode())) {
11092 if (ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode())) {
11176 return std::abs(cast<ConstantSDNode>(V.getNode())->getSExtValue()) <
11325 unsigned CC = cast<ConstantSDNode>(N->getOperand(CCIndex))->getSExtValue();
11341 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(AndNode->getOperand(1))) {
11341 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(AndNode->getOperand(1))) {
11366 if (!isa<ConstantSDNode>(AddInputValue2.getNode()) ||
11367 !isa<ConstantSDNode>(SubsInputValue.getNode()))
11378 cast<ConstantSDNode>(AddInputValue2.getNode())->getSExtValue(),
11379 cast<ConstantSDNode>(SubsInputValue.getNode())->getSExtValue()))
11413 unsigned CC = cast<ConstantSDNode>(CCVal)->getZExtValue();
11487 auto *C = dyn_cast<ConstantSDNode>(Op->getOperand(1));
11487 auto *C = dyn_cast<ConstantSDNode>(Op->getOperand(1));
11537 unsigned Bit = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue();
11677 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(0));
11677 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(0));
11679 C = dyn_cast<ConstantSDNode>(N->getOperand(1));
11778 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
11867 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
11867 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
12349 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
12349 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
lib/Target/AArch64/AArch64ISelLowering.h 505 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
505 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
lib/Target/AArch64/AArch64SelectionDAGInfo.cpp 23 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
23 ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
24 ConstantSDNode *SizeValue = dyn_cast<ConstantSDNode>(Size);
24 ConstantSDNode *SizeValue = dyn_cast<ConstantSDNode>(Size);
115 uint64_t ObjSize = cast<ConstantSDNode>(Size)->getZExtValue();
lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp 77 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
77 ConstantSDNode *Const = dyn_cast<ConstantSDNode>(V);
89 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) {
89 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N)) {
335 if (ConstantSDNode *ShiftAmt = dyn_cast<ConstantSDNode>(Srl.getOperand(1))) {
335 if (ConstantSDNode *ShiftAmt = dyn_cast<ConstantSDNode>(Srl.getOperand(1))) {
524 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N))
524 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N))
531 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N))
531 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N))
577 unsigned RCID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
582 unsigned SubRegIdx = cast<ConstantSDNode>(SubRegOp)->getZExtValue();
820 ConstantSDNode *C = cast<ConstantSDNode>(N);
820 ConstantSDNode *C = cast<ConstantSDNode>(N);
838 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
838 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
842 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2));
842 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2));
948 ConstantSDNode *C;
951 if ((C = dyn_cast<ConstantSDNode>(Addr))) {
955 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(0)))) {
959 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))) {
1173 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1173 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1182 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) {
1182 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) {
1215 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1215 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1248 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1248 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1260 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) {
1260 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Addr.getOperand(0))) {
1295 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1295 } else if (const ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1346 ConstantSDNode *C1 = nullptr;
1349 C1 = cast<ConstantSDNode>(Addr.getOperand(1));
1430 ConstantSDNode *C = cast<ConstantSDNode>(Addr64);
1430 ConstantSDNode *C = cast<ConstantSDNode>(Addr64);
1490 if (ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1490 if (ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr)) {
1530 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1530 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1551 ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr);
1551 ConstantSDNode *CAddr = dyn_cast<ConstantSDNode>(Addr);
1586 if (!cast<ConstantSDNode>(Offen)->getSExtValue() &&
1587 !cast<ConstantSDNode>(Idxen)->getSExtValue() &&
1588 !cast<ConstantSDNode>(Addr64)->getSExtValue()) {
1645 uint64_t COffsetVal = cast<ConstantSDNode>(N1)->getSExtValue();
1748 ConstantSDNode *C = dyn_cast<ConstantSDNode>(ByteOffsetNode);
1748 ConstantSDNode *C = dyn_cast<ConstantSDNode>(ByteOffsetNode);
1842 return !Imm && isa<ConstantSDNode>(Offset);
1849 !isa<ConstantSDNode>(Offset);
1867 return !Imm && isa<ConstantSDNode>(Offset);
1878 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1878 ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
1890 if (isa<ConstantSDNode>(Index))
1916 ConstantSDNode *B = dyn_cast<ConstantSDNode>(Shl->getOperand(1));
1916 ConstantSDNode *B = dyn_cast<ConstantSDNode>(Shl->getOperand(1));
1917 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
1917 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
1942 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(Srl.getOperand(1));
1942 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(Srl.getOperand(1));
1943 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1));
1943 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(N->getOperand(1));
1964 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(N->getOperand(1));
1964 ConstantSDNode *Shift = dyn_cast<ConstantSDNode>(N->getOperand(1));
1965 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(And->getOperand(1));
1965 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(And->getOperand(1));
1997 const ConstantSDNode *Amt = dyn_cast<ConstantSDNode>(Src.getOperand(1));
1997 const ConstantSDNode *Amt = dyn_cast<ConstantSDNode>(Src.getOperand(1));
2212 const APInt &OffsetVal = cast<ConstantSDNode>(PtrOffset)->getAPIntValue();
2278 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) {
2278 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) {
2324 unsigned IntrID = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
2339 unsigned IntrID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
2361 unsigned IntrID = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
2615 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(In)) {
2615 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(In)) {
2749 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) {
2749 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) {
2759 if (!isa<ConstantSDNode>(Addr)) {
2806 ConstantSDNode *C;
2809 if ((C = dyn_cast<ConstantSDNode>(Addr))) {
2813 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(0)))) {
2817 (C = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))) {
2830 ConstantSDNode *IMMOffset;
2833 && (IMMOffset = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
2841 } else if ((IMMOffset = dyn_cast<ConstantSDNode>(Addr))
lib/Target/AMDGPU/AMDGPUISelLowering.cpp 575 switch (cast<ConstantSDNode>(N->getOperand(0))->getZExtValue()) {
718 unsigned IntrID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
1250 unsigned Start = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
2772 unsigned IID = cast<ConstantSDNode>(Node24->getOperand(0))->getZExtValue();
2978 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
3017 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3017 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3086 const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3086 const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3118 auto *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3118 auto *RHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
3131 if (auto *Mask = dyn_cast<ConstantSDNode>(LHS.getOperand(1))) {
3131 if (auto *Mask = dyn_cast<ConstantSDNode>(LHS.getOperand(1))) {
3393 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val))
3393 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val))
3428 ConstantSDNode *CmpRhs = dyn_cast<ConstantSDNode>(Cond.getOperand(1));
3428 ConstantSDNode *CmpRhs = dyn_cast<ConstantSDNode>(Cond.getOperand(1));
3915 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Src)) {
3915 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Src)) {
3986 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2));
3986 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(N->getOperand(2));
3994 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
3994 ConstantSDNode *Offset = dyn_cast<ConstantSDNode>(N->getOperand(1));
4026 if (ConstantSDNode *CVal = dyn_cast<ConstantSDNode>(BitsFrom)) {
4026 if (ConstantSDNode *CVal = dyn_cast<ConstantSDNode>(BitsFrom)) {
4412 ConstantSDNode *CWidth = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4412 ConstantSDNode *CWidth = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4472 ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4472 ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4517 unsigned IID = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
4540 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4540 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4554 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4554 ConstantSDNode *Width = dyn_cast<ConstantSDNode>(Op.getOperand(2));
4645 = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
lib/Target/AMDGPU/R600ISelLowering.cpp 503 cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
528 cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
714 if (isa<ConstantSDNode>(Index) ||
730 if (isa<ConstantSDNode>(Index) ||
917 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
917 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
1470 isa<ConstantSDNode>(Ptr)) {
1753 unsigned Idx = dyn_cast<ConstantSDNode>(NewBldVec[i].getOperand(1))
1762 unsigned Idx = dyn_cast<ConstantSDNode>(NewBldVec[i].getOperand(1))
1785 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue();
1793 unsigned Idx = cast<ConstantSDNode>(Swz[i])->getZExtValue();
1914 if (!isa<ConstantSDNode>(EltNo))
1916 unsigned Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
1953 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
1953 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
1962 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
1962 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
2070 isa<ConstantSDNode>(Ptr))
2139 ConstantSDNode *Cst
2140 = cast<ConstantSDNode>(ParentNode->getOperand(OtherSelIdx));
2146 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
2146 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
2158 if (cast<ConstantSDNode>(Imm)->getZExtValue())
2181 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Src.getOperand(0));
2181 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Src.getOperand(0));
2198 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Imm);
2198 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Imm);
lib/Target/AMDGPU/SIISelLowering.cpp 4184 const auto *CD = cast<ConstantSDNode>(N->getOperand(3));
4184 const auto *CD = cast<ConstantSDNode>(N->getOperand(3));
4220 const auto *CD = cast<ConstantSDNode>(N->getOperand(3));
4220 const auto *CD = cast<ConstantSDNode>(N->getOperand(3));
4264 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
4391 switch (cast<ConstantSDNode>(Intr->getOperand(1))->getZExtValue()) {
4538 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() != 0)
4773 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
4800 auto KIdx = dyn_cast<ConstantSDNode>(Idx);
4829 if (isa<ConstantSDNode>(Idx))
5194 auto CachePolicyConst = cast<ConstantSDNode>(CachePolicy.getNode());
5299 auto TexFailCtrlConst = cast<ConstantSDNode>(TexFailCtrl.getNode());
5365 auto DMaskConst = cast<ConstantSDNode>(Op.getOperand(DMaskIdx));
5432 dyn_cast<ConstantSDNode>(Op.getOperand(AddrIdx+NumVAddrs-1))) {
5503 cast<ConstantSDNode>(Op.getOperand(AddrIdx + NumVAddrs + 2));
5675 unsigned CachePolicy = cast<ConstantSDNode>(GLC)->getZExtValue();
5691 uint64_t InstOffset = cast<ConstantSDNode>(Ops[5])->getZExtValue();
5711 unsigned IntrinsicID = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
5974 const ConstantSDNode *Param = cast<ConstantSDNode>(Op.getOperand(3));
5974 const ConstantSDNode *Param = cast<ConstantSDNode>(Op.getOperand(3));
6099 if (!isa<ConstantSDNode>(VOffset) || !isa<ConstantSDNode>(SOffset) ||
6099 if (!isa<ConstantSDNode>(VOffset) || !isa<ConstantSDNode>(SOffset) ||
6100 !isa<ConstantSDNode>(Offset))
6104 if (!isa<ConstantSDNode>(VIndex) || !cast<ConstantSDNode>(VIndex)->isNullValue())
6104 if (!isa<ConstantSDNode>(VIndex) || !cast<ConstantSDNode>(VIndex)->isNullValue())
6108 return cast<ConstantSDNode>(VOffset)->getSExtValue() +
6109 cast<ConstantSDNode>(SOffset)->getSExtValue() +
6110 cast<ConstantSDNode>(Offset)->getSExtValue();
6115 unsigned IntrID = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
6243 unsigned Glc = cast<ConstantSDNode>(Op.getOperand(5))->getZExtValue();
6244 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(6))->getZExtValue();
6246 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(3)))
6330 unsigned Dfmt = cast<ConstantSDNode>(Op.getOperand(7))->getZExtValue();
6331 unsigned Nfmt = cast<ConstantSDNode>(Op.getOperand(8))->getZExtValue();
6332 unsigned Glc = cast<ConstantSDNode>(Op.getOperand(9))->getZExtValue();
6333 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(10))->getZExtValue();
6335 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(3)))
6414 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(6))->getZExtValue();
6416 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(4)))
6627 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(7))->getZExtValue();
6629 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(5)))
6770 unsigned IntrinsicID = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
6775 const ConstantSDNode *Tgt = cast<ConstantSDNode>(Op.getOperand(2));
6775 const ConstantSDNode *Tgt = cast<ConstantSDNode>(Op.getOperand(2));
6776 const ConstantSDNode *En = cast<ConstantSDNode>(Op.getOperand(3));
6776 const ConstantSDNode *En = cast<ConstantSDNode>(Op.getOperand(3));
6777 const ConstantSDNode *Done = cast<ConstantSDNode>(Op.getOperand(8));
6777 const ConstantSDNode *Done = cast<ConstantSDNode>(Op.getOperand(8));
6778 const ConstantSDNode *VM = cast<ConstantSDNode>(Op.getOperand(9));
6778 const ConstantSDNode *VM = cast<ConstantSDNode>(Op.getOperand(9));
6797 const ConstantSDNode *Tgt = cast<ConstantSDNode>(Op.getOperand(2));
6797 const ConstantSDNode *Tgt = cast<ConstantSDNode>(Op.getOperand(2));
6798 const ConstantSDNode *En = cast<ConstantSDNode>(Op.getOperand(3));
6798 const ConstantSDNode *En = cast<ConstantSDNode>(Op.getOperand(3));
6801 const ConstantSDNode *Done = cast<ConstantSDNode>(Op.getOperand(6));
6801 const ConstantSDNode *Done = cast<ConstantSDNode>(Op.getOperand(6));
6802 const ConstantSDNode *VM = cast<ConstantSDNode>(Op.getOperand(7));
6802 const ConstantSDNode *VM = cast<ConstantSDNode>(Op.getOperand(7));
6836 unsigned Dfmt = cast<ConstantSDNode>(Op.getOperand(8))->getZExtValue();
6837 unsigned Nfmt = cast<ConstantSDNode>(Op.getOperand(9))->getZExtValue();
6838 unsigned Glc = cast<ConstantSDNode>(Op.getOperand(10))->getZExtValue();
6839 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(11))->getZExtValue();
6841 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(4)))
6918 unsigned Glc = cast<ConstantSDNode>(Op.getOperand(6))->getZExtValue();
6919 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(7))->getZExtValue();
6921 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(4)))
7045 unsigned Slc = cast<ConstantSDNode>(Op.getOperand(6))->getZExtValue();
7047 if (auto Idx = dyn_cast<ConstantSDNode>(Op.getOperand(4)))
7116 ConstantSDNode *C1 = nullptr;
7118 if ((C1 = dyn_cast<ConstantSDNode>(N0)))
7121 C1 = cast<ConstantSDNode>(N0.getOperand(1));
7140 C1 = cast<ConstantSDNode>(DAG.getTargetConstant(ImmOffset, DL, MVT::i32));
7154 C1 = cast<ConstantSDNode>(DAG.getTargetConstant(0, DL, MVT::i32));
7165 if (auto C = dyn_cast<ConstantSDNode>(CombinedOffset)) {
7179 int Offset = cast<ConstantSDNode>(N1)->getSExtValue();
8058 const ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(N1);
8058 const ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(N1);
8062 const ConstantSDNode *CAdd = dyn_cast<ConstantSDNode>(N0.getOperand(1));
8062 const ConstantSDNode *CAdd = dyn_cast<ConstantSDNode>(N0.getOperand(1));
8128 const ConstantSDNode *CRHS) const {
8191 ConstantSDNode *N1 = dyn_cast<ConstantSDNode>(V.getOperand(1));
8191 ConstantSDNode *N1 = dyn_cast<ConstantSDNode>(V.getOperand(1));
8239 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS);
8239 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS);
8255 if (auto *CShift = dyn_cast<ConstantSDNode>(LHS->getOperand(1))) {
8255 if (auto *CShift = dyn_cast<ConstantSDNode>(LHS->getOperand(1))) {
8277 isa<ConstantSDNode>(LHS.getOperand(2))) {
8338 const ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(RHS.getOperand(1));
8338 const ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(RHS.getOperand(1));
8429 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1));
8429 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1));
8430 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1));
8430 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS.getOperand(1));
8447 if (isa<ConstantSDNode>(RHS) && LHS.hasOneUse() &&
8449 isa<ConstantSDNode>(LHS.getOperand(2))) {
8530 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
8530 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(N->getOperand(1));
8549 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS);
8549 const ConstantSDNode *CRHS = dyn_cast<ConstantSDNode>(RHS);
8685 if (const ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(Mask)) {
8685 if (const ConstantSDNode *CMask = dyn_cast<ConstantSDNode>(Mask)) {
8849 = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
9014 ConstantSDNode *K1 = dyn_cast<ConstantSDNode>(Op1);
9014 ConstantSDNode *K1 = dyn_cast<ConstantSDNode>(Op1);
9018 ConstantSDNode *K0 = dyn_cast<ConstantSDNode>(Op0.getOperand(1));
9018 ConstantSDNode *K0 = dyn_cast<ConstantSDNode>(Op0.getOperand(1));
9316 !isa<ConstantSDNode>(N->getOperand(1))) {
9338 auto *Idx = dyn_cast<ConstantSDNode>(N->getOperand(1));
9338 auto *Idx = dyn_cast<ConstantSDNode>(N->getOperand(1));
9386 if (isa<ConstantSDNode>(Idx) ||
9548 auto C = dyn_cast<ConstantSDNode>(RHS.getOperand(1));
9571 auto C = dyn_cast<ConstantSDNode>(LHS.getOperand(1));
9586 auto C = dyn_cast<ConstantSDNode>(N->getOperand(1));
9779 auto CRHS = dyn_cast<ConstantSDNode>(RHS);
9781 CRHS = dyn_cast<ConstantSDNode>(LHS);
9811 isa<ConstantSDNode>(LHS.getOperand(1)) &&
9812 isa<ConstantSDNode>(LHS.getOperand(2)) &&
9882 if (const ConstantSDNode *C =
9883 dyn_cast<ConstantSDNode>(Srl.getOperand(1))) {
10361 ConstantSDNode *FI = cast<ConstantSDNode>(Node->getOperand(0));
10361 ConstantSDNode *FI = cast<ConstantSDNode>(Node->getOperand(0));
10362 ConstantSDNode *BC = cast<ConstantSDNode>(Node->getOperand(2));
10362 ConstantSDNode *BC = cast<ConstantSDNode>(Node->getOperand(2));
10872 cast<ConstantSDNode>(N->getOperand(0))->getZExtValue());
10875 cast<ConstantSDNode>(N->getOperand(1))->getZExtValue());
lib/Target/AMDGPU/SIISelLowering.h 148 const ConstantSDNode *CRHS) const;
lib/Target/AMDGPU/SIInstrInfo.cpp 181 Offset0 = cast<ConstantSDNode>(Load0->getOperand(Offset0Idx))->getZExtValue();
182 Offset1 = cast<ConstantSDNode>(Load1->getOperand(Offset1Idx))->getZExtValue();
198 const ConstantSDNode *Load0Offset =
199 dyn_cast<ConstantSDNode>(Load0->getOperand(1));
200 const ConstantSDNode *Load1Offset =
201 dyn_cast<ConstantSDNode>(Load1->getOperand(1));
236 if (!isa<ConstantSDNode>(Off0) || !isa<ConstantSDNode>(Off1))
236 if (!isa<ConstantSDNode>(Off0) || !isa<ConstantSDNode>(Off1))
239 Offset0 = cast<ConstantSDNode>(Off0)->getZExtValue();
240 Offset1 = cast<ConstantSDNode>(Off1)->getZExtValue();
lib/Target/ARC/ARCISelDAGToDAG.cpp 52 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
52 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
105 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
105 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
134 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
134 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
155 ConstantSDNode *CN = nullptr;
157 (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) &&
172 uint64_t CVal = cast<ConstantSDNode>(N)->getZExtValue();
lib/Target/ARM/ARMBaseInstrInfo.cpp 1898 if (isa<ConstantSDNode>(Load1->getOperand(1)) &&
1899 isa<ConstantSDNode>(Load2->getOperand(1))) {
1900 Offset1 = cast<ConstantSDNode>(Load1->getOperand(1))->getSExtValue();
1901 Offset2 = cast<ConstantSDNode>(Load2->getOperand(1))->getSExtValue();
4391 cast<ConstantSDNode>(DefNode->getOperand(2))->getZExtValue();
4404 cast<ConstantSDNode>(DefNode->getOperand(2))->getZExtValue();
4418 cast<ConstantSDNode>(DefNode->getOperand(2))->getZExtValue();
lib/Target/ARM/ARMISelDAGToDAG.cpp 105 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
105 const ConstantSDNode *CN = cast<ConstantSDNode>(N);
304 Imm = cast<ConstantSDNode>(N)->getZExtValue();
334 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node);
334 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Node);
497 ConstantSDNode *MulConst = dyn_cast<ConstantSDNode>(N.getOperand(1));
497 ConstantSDNode *MulConst = dyn_cast<ConstantSDNode>(N.getOperand(1));
556 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
556 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
580 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
580 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
628 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
628 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
657 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
657 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
704 if (ConstantSDNode *Sh =
705 dyn_cast<ConstantSDNode>(N.getOperand(1).getOperand(1))) {
726 if (ConstantSDNode *Sh =
727 dyn_cast<ConstantSDNode>(N.getOperand(0).getOperand(1))) {
779 if (ConstantSDNode *Sh = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
779 if (ConstantSDNode *Sh = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1023 if (ConstantSDNode *NC = dyn_cast<ConstantSDNode>(N)) {
1023 if (ConstantSDNode *NC = dyn_cast<ConstantSDNode>(N)) {
1035 Label = CurDAG->getTargetConstant(cast<ConstantSDNode>(N1)->getZExtValue(),
1056 if (auto C = dyn_cast<ConstantSDNode>(N.getOperand(1)))
1065 ConstantSDNode *NC = dyn_cast<ConstantSDNode>(N);
1065 ConstantSDNode *NC = dyn_cast<ConstantSDNode>(N);
1244 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1244 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1278 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1278 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1376 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1376 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1400 if (ConstantSDNode *Sh = dyn_cast<ConstantSDNode>(OffReg.getOperand(1))) {
1400 if (ConstantSDNode *Sh = dyn_cast<ConstantSDNode>(OffReg.getOperand(1))) {
1438 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
1438 ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1));
1556 auto *COffs = dyn_cast<ConstantSDNode>(LD->getOffset());
1556 auto *COffs = dyn_cast<ConstantSDNode>(LD->getOffset());
1786 unsigned Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
1917 auto C = dyn_cast<ConstantSDNode>(Inc);
2230 cast<ConstantSDNode>(N->getOperand(Vec0Idx + NumVecs))->getZExtValue();
2236 Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
2388 int32_t ImmValue = cast<ConstantSDNode>(N->getOperand(3))->getZExtValue();
2412 int32_t ImmValue = cast<ConstantSDNode>(N->getOperand(3))->getZExtValue();
2439 ConstantSDNode *CarryInConstant = dyn_cast<ConstantSDNode>(CarryIn);
2439 ConstantSDNode *CarryInConstant = dyn_cast<ConstantSDNode>(CarryIn);
2520 Alignment = cast<ConstantSDNode>(Align)->getZExtValue();
2794 ConstantSDNode *SRAConstant = dyn_cast<ConstantSDNode>(SRASrc1);
2794 ConstantSDNode *SRAConstant = dyn_cast<ConstantSDNode>(SRASrc1);
2860 if (!isa<ConstantSDNode>(Zero) || !cast<ConstantSDNode>(Zero)->isNullValue() ||
2860 if (!isa<ConstantSDNode>(Zero) || !cast<ConstantSDNode>(Zero)->isNullValue() ||
2864 auto C = dyn_cast<ConstantSDNode>(And.getOperand(1));
2985 unsigned Val = cast<ConstantSDNode>(N)->getZExtValue();
3066 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
3066 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
3117 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1));
3117 auto *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1));
3170 N1C = dyn_cast<ConstantSDNode>(N1);
3175 ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2);
3175 ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N2);
3257 auto *Zero = dyn_cast<ConstantSDNode>(Subc.getOperand(0));
3257 auto *Zero = dyn_cast<ConstantSDNode>(Subc.getOperand(0));
3333 unsigned CC = (unsigned) cast<ConstantSDNode>(N2)->getZExtValue();
3338 uint64_t ID = cast<ConstantSDNode>(Int->getOperand(1))->getZExtValue();
3344 cast<ConstantSDNode>(Int.getOperand(3))->getZExtValue(), dl,
3404 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(1).getNode());
3404 auto *C = dyn_cast<ConstantSDNode>(N->getOperand(1).getNode());
3446 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
3798 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
3815 Ops.push_back(getI32Imm(cast<ConstantSDNode>(N->getOperand(2))->getZExtValue(), dl)); /* coproc */
3816 Ops.push_back(getI32Imm(cast<ConstantSDNode>(N->getOperand(3))->getZExtValue(), dl)); /* opc */
3817 Ops.push_back(getI32Imm(cast<ConstantSDNode>(N->getOperand(4))->getZExtValue(), dl)); /* CRm */
4264 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
4657 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) {
4657 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) {
lib/Target/ARM/ARMISelLowering.cpp 1765 if (auto Const = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
1773 if (auto Const = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
1781 if (auto Const = dyn_cast<ConstantSDNode>(Op.getOperand(1)))
3585 cast<ConstantSDNode>(
3627 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
3757 ConstantSDNode *SSIDNode = cast<ConstantSDNode>(Op.getOperand(2));
3757 ConstantSDNode *SSIDNode = cast<ConstantSDNode>(Op.getOperand(2));
3772 ConstantSDNode *OrdN = cast<ConstantSDNode>(Op.getOperand(1));
3772 ConstantSDNode *OrdN = cast<ConstantSDNode>(Op.getOperand(1));
3800 unsigned isRead = ~cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue() & 1;
3806 unsigned isData = cast<ConstantSDNode>(Op.getOperand(4))->getZExtValue();
4184 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) {
4184 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS.getNode())) {
4250 LHS->hasOneUse() && isa<ConstantSDNode>(LHS.getOperand(1)) &&
4251 LHS.getValueType() == MVT::i32 && isa<ConstantSDNode>(RHS) &&
4253 unsigned Mask = cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue();
4254 auto *RHSC = cast<ConstantSDNode>(RHS.getNode());
4254 auto *RHSC = cast<ConstantSDNode>(RHS.getNode());
4273 isa<ConstantSDNode>(RHS) &&
4274 cast<ConstantSDNode>(RHS)->getZExtValue() == 0x80000000U &&
4275 CC == ISD::SETUGT && isa<ConstantSDNode>(LHS.getOperand(1)) &&
4276 cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue() < 31) {
4278 cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue() + 1;
4570 const ConstantSDNode *CMOVTrue =
4571 dyn_cast<ConstantSDNode>(Cond.getOperand(0));
4572 const ConstantSDNode *CMOVFalse =
4573 dyn_cast<ConstantSDNode>(Cond.getOperand(1));
4744 const SDValue Op2 = isa<ConstantSDNode>(TrueVal1) ? FalseVal1 : TrueVal1;
4756 SDValue *K1 = isa<ConstantSDNode>(LHS1) ? &LHS1 : isa<ConstantSDNode>(RHS1)
4756 SDValue *K1 = isa<ConstantSDNode>(LHS1) ? &LHS1 : isa<ConstantSDNode>(RHS1)
4759 SDValue *K2 = isa<ConstantSDNode>(LHS2) ? &LHS2 : isa<ConstantSDNode>(RHS2)
4759 SDValue *K2 = isa<ConstantSDNode>(LHS2) ? &LHS2 : isa<ConstantSDNode>(RHS2)
4762 SDValue K2Tmp = isa<ConstantSDNode>(TrueVal2) ? TrueVal2 : FalseVal2;
4801 int64_t Val1 = cast<ConstantSDNode>(*K1)->getSExtValue();
4802 int64_t Val2 = cast<ConstantSDNode>(*K2)->getSExtValue();
4844 SDValue *K = isa<ConstantSDNode>(LHS) ? &LHS : isa<ConstantSDNode>(RHS)
4844 SDValue *K = isa<ConstantSDNode>(LHS) ? &LHS : isa<ConstantSDNode>(RHS)
4852 SDValue KTmp = isa<ConstantSDNode>(TrueVal) ? TrueVal : FalseVal;
4921 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FalseVal);
4921 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FalseVal);
4922 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TrueVal);
4922 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TrueVal);
5012 if (cast<ConstantSDNode>(ARMcc)->getZExtValue() == ARMCC::PL)
5197 (ARMCC::CondCodes)cast<const ConstantSDNode>(ARMcc)->getZExtValue();
5250 (ARMCC::CondCodes)cast<const ConstantSDNode>(ARMcc)->getZExtValue();
5536 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
5559 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
5626 ConstantSDNode *Index = dyn_cast<ConstantSDNode>(Op.getOperand(1));
5626 ConstantSDNode *Index = dyn_cast<ConstantSDNode>(Op.getOperand(1));
6091 ConstantSDNode *Con = dyn_cast<ConstantSDNode>(ShAmt);
6091 ConstantSDNode *Con = dyn_cast<ConstantSDNode>(ShAmt);
7017 if (!isa<ConstantSDNode>(N))
7019 Val = cast<ConstantSDNode>(N)->getZExtValue();
7056 if (!isa<ConstantSDNode>(FirstOp) &&
7070 if (!isa<ConstantSDNode>(V) && !V.isUndef())
7072 bool BitSet = V.isUndef() ? false : cast<ConstantSDNode>(V)->getZExtValue();
7082 if (isa<ConstantSDNode>(V) || V.isUndef())
7168 if (!isa<ConstantFPSDNode>(V) && !isa<ConstantSDNode>(V))
7206 ConstantSDNode *constIndex;
7208 (constIndex = dyn_cast<ConstantSDNode>(Value->getOperand(1)))) {
7369 } else if (!isa<ConstantSDNode>(V.getOperand(1))) {
7382 unsigned EltNo = cast<ConstantSDNode>(V.getOperand(1))->getZExtValue();
7493 int EltNo = cast<ConstantSDNode>(Entry.getOperand(1))->getSExtValue();
7832 !isa<ConstantSDNode>(V1.getOperand(0))) {
8005 unsigned Lane = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
8020 if (!isa<ConstantSDNode>(Lane))
8068 unsigned Lane = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
8080 if (!isa<ConstantSDNode>(Lane))
8182 unsigned Index = cast<ConstantSDNode>(V2)->getZExtValue();
8225 ConstantSDNode *Lo0 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt));
8225 ConstantSDNode *Lo0 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt));
8226 ConstantSDNode *Hi0 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt));
8226 ConstantSDNode *Hi0 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt));
8227 ConstantSDNode *Lo1 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt+2));
8227 ConstantSDNode *Lo1 = dyn_cast<ConstantSDNode>(BVN->getOperand(LoElt+2));
8228 ConstantSDNode *Hi1 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt+2));
8228 ConstantSDNode *Hi1 = dyn_cast<ConstantSDNode>(BVN->getOperand(HiElt+2));
8247 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Elt)) {
8247 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Elt)) {
8392 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(i));
8392 ConstantSDNode *C = cast<ConstantSDNode>(N->getOperand(i));
9244 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
11084 ConstantSDNode *C0 = dyn_cast<ConstantSDNode>(ExtVec0->getOperand(1));
11084 ConstantSDNode *C0 = dyn_cast<ConstantSDNode>(ExtVec0->getOperand(1));
11085 ConstantSDNode *C1 = dyn_cast<ConstantSDNode>(ExtVec1->getOperand(1));
11085 ConstantSDNode *C1 = dyn_cast<ConstantSDNode>(ExtVec1->getOperand(1));
11171 if (auto Const = dyn_cast<ConstantSDNode>(SRA.getOperand(1))) {
11482 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
11482 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
11503 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
11503 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
11601 if (auto *Const = dyn_cast<ConstantSDNode>(N1->getOperand(1))) {
11601 if (auto *Const = dyn_cast<ConstantSDNode>(N1->getOperand(1))) {
11679 if (isa<ConstantSDNode>(U->getOperand(0)) ||
11680 isa<ConstantSDNode>(U->getOperand(1)))
11700 auto *C1ShlC2 = dyn_cast<ConstantSDNode>(N->getOperand(1));
11700 auto *C1ShlC2 = dyn_cast<ConstantSDNode>(N->getOperand(1));
11701 auto *C2 = dyn_cast<ConstantSDNode>(SHL.getOperand(1));
11701 auto *C2 = dyn_cast<ConstantSDNode>(SHL.getOperand(1));
11839 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
11839 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
11915 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1));
11915 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1));
11933 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0->getOperand(1));
11933 ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0->getOperand(1));
12149 ConstantSDNode *MaskC = dyn_cast<ConstantSDNode>(MaskOp);
12149 ConstantSDNode *MaskC = dyn_cast<ConstantSDNode>(MaskOp);
12157 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
12157 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
12177 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
12177 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
12222 N00.getOpcode() == ISD::SHL && isa<ConstantSDNode>(N00.getOperand(1)) &&
12227 unsigned ShAmtC = cast<ConstantSDNode>(ShAmt)->getZExtValue();
12273 CondCode0 = (ARMCC::CondCodes)cast<const ConstantSDNode>(N0->getOperand(2))
12276 CondCode0 = (ARMCC::CondCodes)cast<const ConstantSDNode>(N0->getOperand(1))
12279 CondCode1 = (ARMCC::CondCodes)cast<const ConstantSDNode>(N1->getOperand(2))
12282 CondCode1 = (ARMCC::CondCodes)cast<const ConstantSDNode>(N1->getOperand(1))
12444 ToMask = ~cast<ConstantSDNode>(N->getOperand(2))->getAPIntValue();
12450 isa<ConstantSDNode>(From->getOperand(1))) {
12451 APInt Shift = cast<ConstantSDNode>(From->getOperand(1))->getAPIntValue();
12519 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
12519 ConstantSDNode *N11C = dyn_cast<ConstantSDNode>(N1.getOperand(1));
12522 unsigned InvMask = cast<ConstantSDNode>(N->getOperand(2))->getZExtValue();
12724 } else if (Elt.isUndef() || isa<ConstantSDNode>(Elt))
12909 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
12979 ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode());
12979 ConstantSDNode *CInc = dyn_cast<ConstantSDNode>(Inc.getNode());
13113 unsigned IntNo = cast<ConstantSDNode>(VLD->getOperand(1))->getZExtValue();
13130 cast<ConstantSDNode>(VLD->getOperand(NumVecs+3))->getZExtValue();
13138 VLDLaneNo != cast<ConstantSDNode>(User->getOperand(1))->getZExtValue())
13198 unsigned Imm = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
13583 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
13750 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
13750 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N1)) {
13769 ConstantSDNode *ShiftAmtNode = dyn_cast<ConstantSDNode>(N->getOperand(1));
13769 ConstantSDNode *ShiftAmtNode = dyn_cast<ConstantSDNode>(N->getOperand(1));
13773 ConstantSDNode *AndMaskNode = dyn_cast<ConstantSDNode>(N0->getOperand(1));
13773 ConstantSDNode *AndMaskNode = dyn_cast<ConstantSDNode>(N0->getOperand(1));
13911 isa<ConstantSDNode>(Lane)) {
13936 ConstantSDNode *C = dyn_cast<ConstantSDNode>(V);
13936 ConstantSDNode *C = dyn_cast<ConstantSDNode>(V);
13959 auto CCNode = cast<ConstantSDNode>(CMOV->getOperand(2));
13987 ConstantSDNode *OrC = dyn_cast<ConstantSDNode>(Op1->getOperand(1));
13987 ConstantSDNode *OrC = dyn_cast<ConstantSDNode>(Op1->getOperand(1));
14045 if (!isa<ConstantSDNode>(N.getOperand(1)))
14047 if (!cast<ConstantSDNode>(N.getOperand(1))->isOne())
14053 auto *Const = dyn_cast<ConstantSDNode>(N.getOperand(1));
14053 auto *Const = dyn_cast<ConstantSDNode>(N.getOperand(1));
14066 unsigned IntOp = cast<ConstantSDNode>(N.getOperand(1))->getZExtValue();
14107 if (auto *Const = dyn_cast<ConstantSDNode>(N->getOperand(3))) {
14107 if (auto *Const = dyn_cast<ConstantSDNode>(N->getOperand(3))) {
14144 unsigned IntOp = cast<ConstantSDNode>(Int->getOperand(1))->getZExtValue();
14175 cast<ConstantSDNode>(Int.getOperand(3))->getZExtValue(), dl, MVT::i32);
14214 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
14221 auto *LHS00C = dyn_cast<ConstantSDNode>(LHS->getOperand(0)->getOperand(0));
14221 auto *LHS00C = dyn_cast<ConstantSDNode>(LHS->getOperand(0)->getOperand(0));
14222 auto *LHS01C = dyn_cast<ConstantSDNode>(LHS->getOperand(0)->getOperand(1));
14222 auto *LHS01C = dyn_cast<ConstantSDNode>(LHS->getOperand(0)->getOperand(1));
14223 auto *LHS1C = dyn_cast<ConstantSDNode>(LHS->getOperand(1));
14223 auto *LHS1C = dyn_cast<ConstantSDNode>(LHS->getOperand(1));
14224 auto *RHSC = dyn_cast<ConstantSDNode>(RHS);
14224 auto *RHSC = dyn_cast<ConstantSDNode>(RHS);
14254 (ARMCC::CondCodes)cast<ConstantSDNode>(ARMcc)->getZExtValue();
14294 auto *LHS0C = dyn_cast<ConstantSDNode>(LHS->getOperand(0));
14294 auto *LHS0C = dyn_cast<ConstantSDNode>(LHS->getOperand(0));
14295 auto *LHS1C = dyn_cast<ConstantSDNode>(LHS->getOperand(1));
14295 auto *LHS1C = dyn_cast<ConstantSDNode>(LHS->getOperand(1));
14296 auto *RHSC = dyn_cast<ConstantSDNode>(RHS);
14296 auto *RHSC = dyn_cast<ConstantSDNode>(RHS);
14531 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
15133 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15133 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15147 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15147 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15190 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15190 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Ptr->getOperand(1))) {
15213 if (!isa<ConstantSDNode>(Ptr->getOperand(1)))
15216 ConstantSDNode *RHS = cast<ConstantSDNode>(Ptr->getOperand(1));
15216 ConstantSDNode *RHS = cast<ConstantSDNode>(Ptr->getOperand(1));
15334 auto *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1));
15334 auto *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1));
15415 ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(1));
15415 ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(1));
15435 ConstantSDNode *CI = cast<ConstantSDNode>(Op.getOperand(2));
15435 ConstantSDNode *CI = cast<ConstantSDNode>(Op.getOperand(2));
15447 ConstantSDNode *Pos = cast<ConstantSDNode>(Op.getOperand(1).getNode());
15447 ConstantSDNode *Pos = cast<ConstantSDNode>(Op.getOperand(1).getNode());
15493 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
15493 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
15766 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
15766 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
16071 unsigned Align = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
lib/Target/ARM/ARMSelectionDAGInfo.cpp 53 if (ConstantSDNode *ConstantSrc = dyn_cast<ConstantSDNode>(Src))
53 if (ConstantSDNode *ConstantSrc = dyn_cast<ConstantSDNode>(Src))
139 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
139 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
lib/Target/AVR/AVRISelDAGToDAG.cpp 84 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
84 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
136 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue();
178 int Offs = cast<ConstantSDNode>(LD->getOffset())->getSExtValue();
242 ConstantSDNode *ImmNode = dyn_cast<ConstantSDNode>(ImmOp);
242 ConstantSDNode *ImmNode = dyn_cast<ConstantSDNode>(ImmOp);
330 if (isa<FrameIndexSDNode>(BasePtr) || isa<ConstantSDNode>(BasePtr) ||
341 int CST = (int)cast<ConstantSDNode>(BasePtr.getOperand(1))->getZExtValue();
lib/Target/AVR/AVRISelLowering.cpp 287 if (!isa<ConstantSDNode>(N->getOperand(1))) {
309 uint64_t ShiftAmount = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
460 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
460 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
493 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
493 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
523 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
523 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS)) {
723 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
723 if (const ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
806 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
806 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
857 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
857 if (const ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
1929 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
1929 const ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
lib/Target/BPF/BPFISelDAGToDAG.cpp 114 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
114 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
143 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
143 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
205 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
275 const ConstantSDNode *CDN = dyn_cast<ConstantSDNode>(OP2.getNode());
275 const ConstantSDNode *CDN = dyn_cast<ConstantSDNode>(OP2.getNode());
467 ConstantSDNode *MaskN = dyn_cast<ConstantSDNode>(Node->getOperand(1));
467 ConstantSDNode *MaskN = dyn_cast<ConstantSDNode>(Node->getOperand(1));
481 unsigned IntNo = cast<ConstantSDNode>(BaseV->getOperand(1))->getZExtValue();
lib/Target/BPF/BPFSelectionDAGInfo.cpp 25 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
25 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp 70 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
190 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue();
205 auto Inc = cast<ConstantSDNode>(IntN->getOperand(5));
282 switch (cast<ConstantSDNode>(C->getOperand(1))->getZExtValue()) {
323 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue();
364 unsigned IntNo = cast<ConstantSDNode>(IntN->getOperand(1))->getZExtValue();
390 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3));
425 auto Inc = cast<ConstantSDNode>(IntN->getOperand(3));
469 int32_t Inc = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
579 int32_t ShlConst = cast<ConstantSDNode>(Shl_1)->getSExtValue();
585 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Mul_1)) {
585 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Mul_1)) {
601 if (ConstantSDNode *C1 = dyn_cast<ConstantSDNode>(Sub_0)) {
601 if (ConstantSDNode *C1 = dyn_cast<ConstantSDNode>(Sub_0)) {
606 if (ConstantSDNode *C2 = dyn_cast<ConstantSDNode>(Shl2_1)) {
606 if (ConstantSDNode *C2 = dyn_cast<ConstantSDNode>(Shl2_1)) {
639 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
663 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
722 unsigned Opc = (cast<ConstantSDNode>(N)->getSExtValue() != 0)
812 int Mask = -cast<ConstantSDNode>(A.getNode())->getSExtValue();
985 if (ConstantSDNode *SC = dyn_cast<ConstantSDNode>(V.getNode()))
985 if (ConstantSDNode *SC = dyn_cast<ConstantSDNode>(V.getNode()))
1049 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(C.getNode());
1049 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(C.getNode());
1056 ConstantSDNode *EN = dyn_cast<ConstantSDNode>(T2.getNode());
1056 ConstantSDNode *EN = dyn_cast<ConstantSDNode>(T2.getNode());
1111 ConstantSDNode *SN = dyn_cast<ConstantSDNode>(S.getOperand(1).getNode());
1111 ConstantSDNode *SN = dyn_cast<ConstantSDNode>(S.getOperand(1).getNode());
1119 ConstantSDNode *MN = dyn_cast<ConstantSDNode>(T0.getOperand(1).getNode());
1119 ConstantSDNode *MN = dyn_cast<ConstantSDNode>(T0.getOperand(1).getNode());
1318 if (!T.isInteger() || T.getSizeInBits() != 32 || !isa<ConstantSDNode>(N))
1334 int32_t V = cast<const ConstantSDNode>(N)->getZExtValue();
1383 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N1)) {
1383 if (ConstantSDNode *Const = dyn_cast<ConstantSDNode>(N1)) {
1468 auto *S = dyn_cast<ConstantSDNode>(N.getOperand(1));
1468 auto *S = dyn_cast<ConstantSDNode>(N.getOperand(1));
1524 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(0))) {
1524 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(0))) {
1530 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(1))) {
1530 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(1))) {
1542 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(0))) {
1542 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(0))) {
1548 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(1))) {
1548 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(1))) {
1582 if (const ConstantSDNode *CN = dyn_cast<const ConstantSDNode>(N)) {
1582 if (const ConstantSDNode *CN = dyn_cast<const ConstantSDNode>(N)) {
1608 return isa<ConstantSDNode>(N->getOperand(1).getNode());
1691 if (!HaveConst && SeparateConst && isa<ConstantSDNode>(L.Value)) {
1693 cast<ConstantSDNode>(L.Value)->getSExtValue() == 1)
1696 cast<ConstantSDNode>(L.Value)->getSExtValue() == 0)
1733 !isa<ConstantSDNode>(Val.getOperand(1)) ||
1760 !isa<ConstantSDNode>(Val.getOperand(1)) ||
1790 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(i));
1790 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Val.getOperand(i));
1800 if (!isa<ConstantSDNode>(Val.getOperand(1).getNode()))
1813 if (isa<ConstantSDNode>(Ops[i].getNode()) &&
1829 if (isa<ConstantSDNode>(Ops[i].getNode()) &&
2078 ConstantSDNode *Offset = cast<ConstantSDNode>(Leaves.top().Value);
2078 ConstantSDNode *Offset = cast<ConstantSDNode>(Leaves.top().Value);
2159 ConstantSDNode *V0C = dyn_cast<ConstantSDNode>(V0);
2159 ConstantSDNode *V0C = dyn_cast<ConstantSDNode>(V0);
2160 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(V1);
2160 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(V1);
2202 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(NewRoot.getOperand(1));
2202 ConstantSDNode *V1C = dyn_cast<ConstantSDNode>(NewRoot.getOperand(1));
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp 2084 if (auto *CN = dyn_cast<ConstantSDNode>(RotV.getNode())) {
2084 if (auto *CN = dyn_cast<ConstantSDNode>(RotV.getNode())) {
2133 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
2170 unsigned IntNo = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
2199 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
lib/Target/Hexagon/HexagonISelLowering.cpp 566 if (!isa<ConstantSDNode>(Offset.getNode()))
570 int32_t V = cast<ConstantSDNode>(Offset.getNode())->getSExtValue();
590 unsigned Flags = cast<ConstantSDNode>(Op.getOperand(i))->getZExtValue();
649 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
668 ConstantSDNode *AlignConst = dyn_cast<ConstantSDNode>(Align);
668 ConstantSDNode *AlignConst = dyn_cast<ConstantSDNode>(Align);
858 ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS);
858 ConstantSDNode *C = dyn_cast<ConstantSDNode>(RHS);
977 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
999 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1680 auto *CA = dyn_cast<ConstantSDNode>(Ptr);
1680 auto *CA = dyn_cast<ConstantSDNode>(Ptr);
1901 if (auto *CN = dyn_cast<const ConstantSDNode>(Op1.getNode()))
2069 if (isa<ConstantSDNode>(Op.getOperand(1).getNode()))
2108 if (auto *CN = dyn_cast<ConstantSDNode>(V.getNode())) {
2108 if (auto *CN = dyn_cast<ConstantSDNode>(V.getNode())) {
2277 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV);
2277 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV);
2415 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(IdxV)) {
2415 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(IdxV)) {
2485 auto *CN = dyn_cast<ConstantSDNode>(P.getNode());
2485 auto *CN = dyn_cast<ConstantSDNode>(P.getNode());
2743 auto *CY = dyn_cast<ConstantSDNode>(Y);
2743 auto *CY = dyn_cast<ConstantSDNode>(Y);
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp 384 auto *IdxN = dyn_cast<ConstantSDNode>(SplatV.getNode());
384 auto *IdxN = dyn_cast<ConstantSDNode>(SplatV.getNode());
426 ConstantSDNode *C = dyn_cast<ConstantSDNode>(V.getOperand(1));
426 ConstantSDNode *C = dyn_cast<ConstantSDNode>(V.getOperand(1));
596 if (const auto *N = dyn_cast<ConstantSDNode>(V.getNode()))
596 if (const auto *N = dyn_cast<ConstantSDNode>(V.getNode()))
601 if (const auto *N = dyn_cast<ConstantSDNode>(V.getNode()))
601 if (const auto *N = dyn_cast<ConstantSDNode>(V.getNode()))
765 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
813 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
893 if (const auto *CN = dyn_cast<const ConstantSDNode>(IdxV.getNode())) {
893 if (const auto *CN = dyn_cast<const ConstantSDNode>(IdxV.getNode())) {
918 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode());
918 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode());
978 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode());
978 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode());
1168 unsigned Idx = cast<ConstantSDNode>(IdxV.getNode())->getZExtValue();
lib/Target/Hexagon/HexagonSelectionDAGInfo.cpp 23 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
23 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
lib/Target/Lanai/LanaiISelDAGToDAG.cpp 94 bool canBeRepresentedAsSls(const ConstantSDNode &CN) {
104 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
104 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
126 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
126 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr)) {
172 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
172 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
227 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
227 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
287 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
287 ConstantSDNode *ConstNode = cast<ConstantSDNode>(Node);
lib/Target/Lanai/LanaiISelLowering.cpp 297 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
297 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
307 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
307 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
315 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
315 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
324 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
324 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
333 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
333 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
342 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
342 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
813 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
823 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
831 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
841 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS))
888 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op->getOperand(1));
888 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op->getOperand(1));
1060 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1083 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
lib/Target/Lanai/LanaiSelectionDAGInfo.cpp 27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
27 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
lib/Target/MSP430/MSP430ISelDAGToDAG.cpp 189 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
224 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
224 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
311 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 1)
317 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 2)
lib/Target/MSP430/MSP430ISelLowering.cpp 951 if (!isa<ConstantSDNode>(N->getOperand(1)))
954 uint64_t ShiftAmount = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
1056 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1056 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1070 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1070 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1084 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1084 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1098 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1098 if (const ConstantSDNode * C = dyn_cast<ConstantSDNode>(LHS)) {
1139 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
1139 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
1158 switch (cast<ConstantSDNode>(TargetCC)->getZExtValue()) {
1261 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1287 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1340 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
1340 if (ConstantSDNode *RHS = dyn_cast<ConstantSDNode>(Op->getOperand(1))) {
lib/Target/Mips/Mips16ISelDAGToDAG.cpp 124 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
124 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
lib/Target/Mips/MipsISelLowering.cpp 668 ConstantSDNode *CC = cast<ConstantSDNode>(Cond.getOperand(2));
668 ConstantSDNode *CC = cast<ConstantSDNode>(Cond.getOperand(2));
694 ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(False);
694 ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(False);
721 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True);
721 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True);
763 ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(ValueIfFalse);
763 ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(ValueIfFalse);
795 ConstantSDNode *CN;
800 if (!(CN = dyn_cast<ConstantSDNode>(Mask)) ||
810 if (!(CN = dyn_cast<ConstantSDNode>(FirstOperand.getOperand(1))))
830 if (!(CN = dyn_cast<ConstantSDNode>(FirstOperand.getOperand(1))))
876 ConstantSDNode *CN, *CN1;
882 if (!(CN = dyn_cast<ConstantSDNode>(And0.getOperand(1))) ||
890 if (!(CN = dyn_cast<ConstantSDNode>(And1.getOperand(1))) ||
900 if (!(CN = dyn_cast<ConstantSDNode>(Shl.getOperand(1))))
927 if (!(CN1 = dyn_cast<ConstantSDNode>(And1->getOperand(1))))
930 if (!(CN1 = dyn_cast<ConstantSDNode>(N->getOperand(1))))
1119 ConstantSDNode *CN;
1123 if (!(CN = dyn_cast<ConstantSDNode>(SecondOperand)))
1135 if (!(CN = dyn_cast<ConstantSDNode>(FirstOperand.getOperand(1))) ||
1917 (Mips::CondCode)cast<ConstantSDNode>(CCNode)->getZExtValue();
2376 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() != 0) {
2397 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() != 0) {
4035 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4035 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4045 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4045 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4055 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4055 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4065 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4065 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4075 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4075 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4085 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4085 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4095 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
4095 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
lib/Target/Mips/MipsSEISelDAGToDAG.cpp 78 uint64_t RegNum = cast<ConstantSDNode>(RegIdx)->getZExtValue();
283 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
283 ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1));
443 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Offset)) {
443 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Offset)) {
792 auto *CN = cast<ConstantSDNode>(Node);
792 auto *CN = cast<ConstantSDNode>(Node);
834 switch (cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue()) {
851 switch (cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue()) {
867 switch (cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue()) {
lib/Target/Mips/MipsSEISelLowering.cpp 497 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(Op1);
497 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(Op1);
834 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1)))
834 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1)))
907 ConstantSDNode *ShAmount = dyn_cast<ConstantSDNode>(Op1);
907 ConstantSDNode *ShAmount = dyn_cast<ConstantSDNode>(Op1);
1389 if (isa<ConstantSDNode>(LaneA))
1420 auto *CImm = cast<ConstantSDNode>(Op->getOperand(ImmOp));
1420 auto *CImm = cast<ConstantSDNode>(Op->getOperand(ImmOp));
1473 if (ConstantSDNode *CImm = dyn_cast<ConstantSDNode>(Imm)) {
1473 if (ConstantSDNode *CImm = dyn_cast<ConstantSDNode>(Imm)) {
1534 << cast<ConstantSDNode>(Op->getOperand(2))->getAPIntValue();
1543 unsigned Intrinsic = cast<ConstantSDNode>(Op->getOperand(0))->getZExtValue();
1977 int64_t Value = cast<ConstantSDNode>(Op->getOperand(2))->getSExtValue();
2140 int64_t Value = cast<ConstantSDNode>(Op->getOperand(2))->getSExtValue();
2148 int64_t Value = cast<ConstantSDNode>(Op->getOperand(2))->getSExtValue();
2167 int64_t Value = cast<ConstantSDNode>(Op->getOperand(3))->getSExtValue();
2227 int64_t Value = cast<ConstantSDNode>(Op->getOperand(2))->getSExtValue();
2257 int64_t Value = cast<ConstantSDNode>(Op->getOperand(2))->getSExtValue();
2315 unsigned Intr = cast<ConstantSDNode>(Op->getOperand(1))->getZExtValue();
2390 unsigned Intr = cast<ConstantSDNode>(Op->getOperand(1))->getZExtValue();
2432 if (isa<ConstantSDNode>(Op))
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp 507 unsigned IID = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
619 if (const ConstantSDNode *IdxConst =
620 dyn_cast<ConstantSDNode>(U->getOperand(1))) {
719 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
1036 unsigned ExtensionType = cast<ConstantSDNode>(
1242 unsigned IID = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
2160 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
2175 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
2245 unsigned ParamVal = cast<ConstantSDNode>(Param)->getZExtValue();
2247 unsigned OffsetVal = cast<ConstantSDNode>(Offset)->getZExtValue();
3388 if (isa<ConstantSDNode>(LHS) && !isa<ConstantSDNode>(RHS)) {
3388 if (isa<ConstantSDNode>(LHS) && !isa<ConstantSDNode>(RHS)) {
3392 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(RHS);
3392 ConstantSDNode *Mask = dyn_cast<ConstantSDNode>(RHS);
3415 ConstantSDNode *StartConst = dyn_cast<ConstantSDNode>(Start);
3415 ConstantSDNode *StartConst = dyn_cast<ConstantSDNode>(Start);
3443 ConstantSDNode *ShiftCnst = dyn_cast<ConstantSDNode>(RHS);
3443 ConstantSDNode *ShiftCnst = dyn_cast<ConstantSDNode>(RHS);
3455 if (isa<ConstantSDNode>(AndLHS)) {
3459 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(AndRHS);
3459 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(AndRHS);
3505 ConstantSDNode *ShlCnst = dyn_cast<ConstantSDNode>(ShlRHS);
3505 ConstantSDNode *ShlCnst = dyn_cast<ConstantSDNode>(ShlRHS);
3513 ConstantSDNode *ShrCnst = dyn_cast<ConstantSDNode>(ShrRHS);
3513 ConstantSDNode *ShrCnst = dyn_cast<ConstantSDNode>(ShrRHS);
3607 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
3607 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
3647 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
3647 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
lib/Target/NVPTX/NVPTXISelLowering.cpp 1938 if (isa<ConstantSDNode>(Index.getNode()))
4411 if (isa<ConstantSDNode>(left) || isa<ConstantSDNode>(right))
4411 if (isa<ConstantSDNode>(left) || isa<ConstantSDNode>(right))
4474 if (isa<ConstantSDNode>(Val)) {
4491 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(Mask);
4491 ConstantSDNode *MaskCnst = dyn_cast<ConstantSDNode>(Mask);
4516 cast<ConstantSDNode>(Val->getOperand(Val->getNumOperands()-1))->
4622 if (ConstantSDNode *CI = dyn_cast<ConstantSDNode>(RHS)) {
4622 if (ConstantSDNode *CI = dyn_cast<ConstantSDNode>(RHS)) {
4656 if (isa<ConstantSDNode>(LHS)) {
4663 ConstantSDNode *ShlRHS = dyn_cast<ConstantSDNode>(RHS);
4663 ConstantSDNode *ShlRHS = dyn_cast<ConstantSDNode>(RHS);
4916 unsigned IntrinNo = cast<ConstantSDNode>(Intrin.getNode())->getZExtValue();
lib/Target/PowerPC/PPCISelDAGToDAG.cpp 487 Imm = cast<ConstantSDNode>(N)->getZExtValue();
497 Imm = cast<ConstantSDNode>(N)->getZExtValue();
1093 int64_t Imm = cast<ConstantSDNode>(N)->getZExtValue();
1228 if (isa<ConstantSDNode>(V.getOperand(1))) {
1240 if (isa<ConstantSDNode>(V.getOperand(1))) {
1255 if (isa<ConstantSDNode>(V.getOperand(1))) {
1270 if (isa<ConstantSDNode>(V.getOperand(1))) {
2737 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input);
2737 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input);
2767 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input);
2767 ConstantSDNode *InputConst = dyn_cast<ConstantSDNode>(Input);
2935 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
2935 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
2985 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
2985 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3119 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3119 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3164 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3164 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3277 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3277 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3319 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3319 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3436 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3436 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3479 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3479 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3605 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
3605 ConstantSDNode *RHSConst = dyn_cast<ConstantSDNode>(RHS);
4216 ConstantSDNode *TrueConst = dyn_cast<ConstantSDNode>(TrueRes);
4216 ConstantSDNode *TrueConst = dyn_cast<ConstantSDNode>(TrueRes);
4261 ConstantSDNode *SelCCTrueConst =
4262 dyn_cast<ConstantSDNode>(SetOrSelCC.getOperand(2));
4263 ConstantSDNode *SelCCFalseConst =
4264 dyn_cast<ConstantSDNode>(SetOrSelCC.getOperand(3));
4440 CurDAG->getTargetConstant(*cast<ConstantSDNode>(N->getOperand(1))->
4845 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)))
4845 if (ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N->getOperand(1)))
4846 if (ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N->getOperand(2)))
4846 if (ConstantSDNode *N2C = dyn_cast<ConstantSDNode>(N->getOperand(2)))
4847 if (ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N->getOperand(3)))
4847 if (ConstantSDNode *N3C = dyn_cast<ConstantSDNode>(N->getOperand(3)))
5003 unsigned PCC = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
5272 if (!isa<ConstantSDNode>(O.getOperand(2)) ||
5273 !isa<ConstantSDNode>(O.getOperand(3)))
5289 if (!isa<ConstantSDNode>(O.getOperand(1)) ||
5299 isa<ConstantSDNode>(Op0.getOperand(1))) {
5321 isa<ConstantSDNode>(O.getOperand(1))) {
5347 if (!isa<ConstantSDNode>(Op.getOperand(1)))
5362 if (!isa<ConstantSDNode>(Op.getOperand(1)))
5510 uint64_t True = cast<ConstantSDNode>(TrueRes)->getZExtValue(),
5511 False = cast<ConstantSDNode>(FalseRes)->getZExtValue();
5595 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op2->getOperand(0));
5595 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op2->getOperand(0));
6319 !isa<ConstantSDNode>(V)) {
6429 if (!isa<ConstantSDNode>(N->getOperand(FirstOp)))
6462 (!isa<ConstantSDNode>(Base.getOperand(1)) ||
6520 if (auto *C = dyn_cast<ConstantSDNode>(ImmOpnd)) {
6520 if (auto *C = dyn_cast<ConstantSDNode>(ImmOpnd)) {
lib/Target/PowerPC/PPCISelLowering.cpp 2121 if (!isa<ConstantSDNode>(N->getOperand(i))) return SDValue();
2147 int Val = cast<ConstantSDNode>(UniquedVals[Multiple-1])->getZExtValue();
2154 int Val =cast<ConstantSDNode>(UniquedVals[Multiple-1])->getSExtValue();
2175 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal)) {
2175 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(OpVal)) {
2243 if (!isa<ConstantSDNode>(N))
2246 Imm = (int16_t)cast<ConstantSDNode>(N)->getZExtValue();
2248 return Imm == (int32_t)cast<ConstantSDNode>(N)->getZExtValue();
2250 return Imm == (int64_t)cast<ConstantSDNode>(N)->getZExtValue();
2425 } else if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
2425 } else if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
2623 isa<ConstantSDNode>(Offset))
3006 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
3006 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
4748 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
4748 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
8284 if (!isa<ConstantSDNode>(BVN->getOperand(i))) {
9199 cast<ConstantSDNode>(Intrin.getOperand(0))->getZExtValue();
9445 cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
9489 switch (cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue()) {
9523 int ArgStart = isa<ConstantSDNode>(Op.getOperand(0)) ? 0 : 1;
9525 switch (cast<ConstantSDNode>(Op.getOperand(ArgStart))->getZExtValue()) {
9627 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(2));
9627 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(2));
9697 unsigned Offset = 4*cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
10060 int Idx = cast<ConstantSDNode>(Op0.getOperand(1))->getZExtValue();
10203 if (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue() !=
11713 Offset += cast<ConstantSDNode>(Loc.getOperand(1))->getSExtValue();
11772 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
11818 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
12109 isa<ConstantSDNode>(N->getOperand(i)))
12140 isa<ConstantSDNode>(BinOp.getOperand(i))) {
12164 if (isa<ConstantSDNode>(Inputs[i]))
12218 if (isa<ConstantSDNode>(Inputs[i]))
12241 if (!isa<ConstantSDNode>(PromOp.getOperand(0)) &&
12249 if (isa<ConstantSDNode>(RepValue))
12263 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) &&
12265 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) &&
12280 if (isa<ConstantSDNode>(Ops[C+i]))
12353 isa<ConstantSDNode>(BinOp.getOperand(i))) {
12377 if (isa<ConstantSDNode>(Inputs[i]))
12435 if (isa<ConstantSDNode>(Inputs[i]))
12461 if (isa<ConstantSDNode>(Inputs[i]))
12497 if ((!isa<ConstantSDNode>(PromOp.getOperand(C)) &&
12499 (!isa<ConstantSDNode>(PromOp.getOperand(C+1)) &&
12527 if (!isa<ConstantSDNode>(Ops[C+i]))
12874 ConstantSDNode *ExtOp = dyn_cast<ConstantSDNode>(Extract.getOperand(1));
12874 ConstantSDNode *ExtOp = dyn_cast<ConstantSDNode>(Extract.getOperand(1));
12988 ConstantSDNode *Ext1Op = dyn_cast<ConstantSDNode>(Ext1.getOperand(1));
12988 ConstantSDNode *Ext1Op = dyn_cast<ConstantSDNode>(Ext1.getOperand(1));
12989 ConstantSDNode *Ext2Op = dyn_cast<ConstantSDNode>(Ext2.getOperand(1));
12989 ConstantSDNode *Ext2Op = dyn_cast<ConstantSDNode>(Ext2.getOperand(1));
13389 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(0))) {
13389 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(0))) {
13474 isa<ConstantSDNode>(N->getOperand(1)) && Op1VT == MVT::i32) {
13554 !isa<ConstantSDNode>(RightShift->getOperand(1)) ||
13768 unsigned IID = cast<ConstantSDNode>(N->getOperand(0))->getZExtValue();
13788 cast<ConstantSDNode>(UI->getOperand(0))->getZExtValue() == IID) {
13798 if (isa<ConstantSDNode>(Add->getOperand(1))) {
13803 isa<ConstantSDNode>(UI->getOperand(1)) &&
13804 (cast<ConstantSDNode>(Add->getOperand(1))->getZExtValue() -
13805 cast<ConstantSDNode>(UI->getOperand(1))->getZExtValue()) %
13811 cast<ConstantSDNode>(VI->getOperand(0))->getZExtValue() == IID) {
13859 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
13872 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
13974 cast<ConstantSDNode>(Cond.getOperand(1))->getZExtValue() ==
14000 cast<ConstantSDNode>(LHS.getOperand(0).getOperand(1))->getZExtValue() ==
14002 isa<ConstantSDNode>(LHS.getOperand(1)) &&
14007 cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue() ==
14009 isa<ConstantSDNode>(RHS)) {
14013 unsigned Val = cast<ConstantSDNode>(RHS)->getZExtValue();
14031 isa<ConstantSDNode>(RHS) && (CC == ISD::SETEQ || CC == ISD::SETNE) &&
14037 unsigned Val = cast<ConstantSDNode>(RHS)->getZExtValue();
14059 switch (cast<ConstantSDNode>(LHS.getOperand(1))->getZExtValue()) {
14142 switch (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue()) {
14412 ConstantSDNode *CST = dyn_cast<ConstantSDNode>(Op);
14412 ConstantSDNode *CST = dyn_cast<ConstantSDNode>(Op);
14515 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
14543 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
15125 if (ConstantSDNode *Mask = isConstOrConstSplat(N1->getOperand(1)))
15137 ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(N->getOperand(1));
15137 ConstantSDNode *CN1 = dyn_cast<ConstantSDNode>(N->getOperand(1));
15198 if (auto *Constant = dyn_cast<ConstantSDNode>(Cmp.getOperand(1))) {
15198 if (auto *Constant = dyn_cast<ConstantSDNode>(Cmp.getOperand(1))) {
15221 auto *Constant = dyn_cast<ConstantSDNode>(Cmp.getOperand(1));
15221 auto *Constant = dyn_cast<ConstantSDNode>(Cmp.getOperand(1));
15299 ConstantSDNode *ConstNode = dyn_cast<ConstantSDNode>(Op0.getOperand(1));
15299 ConstantSDNode *ConstNode = dyn_cast<ConstantSDNode>(Op0.getOperand(1));
15325 ConstantSDNode *ConstOpOrElement = isConstOrConstSplat(N->getOperand(1));
lib/Target/RISCV/RISCVISelDAGToDAG.cpp 92 Mask = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
115 auto ConstNode = cast<ConstantSDNode>(Node);
148 uint64_t ShAmt = cast<ConstantSDNode>(Op1.getNode())->getZExtValue();
245 if (!isa<ConstantSDNode>(N->getOperand(OffsetOpIdx)) ||
257 if (auto Const = dyn_cast<ConstantSDNode>(ImmOperand)) {
lib/Target/RISCV/RISCVISelLowering.cpp 680 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
705 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1033 auto *C1 = dyn_cast<ConstantSDNode>(N0->getOperand(1));
1033 auto *C1 = dyn_cast<ConstantSDNode>(N0->getOperand(1));
1034 auto *C2 = dyn_cast<ConstantSDNode>(N->getOperand(1));
1034 auto *C2 = dyn_cast<ConstantSDNode>(N->getOperand(1));
2691 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
2691 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
2700 if (auto *C = dyn_cast<ConstantSDNode>(Op))
2700 if (auto *C = dyn_cast<ConstantSDNode>(Op))
2707 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
2707 if (auto *C = dyn_cast<ConstantSDNode>(Op)) {
lib/Target/Sparc/SparcISelDAGToDAG.cpp 89 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
89 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1))) {
128 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
128 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
183 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) {
183 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(i))) {
lib/Target/Sparc/SparcISelLowering.cpp 1893 SPCC = cast<ConstantSDNode>(LHS.getOperand(2))->getZExtValue();
2547 unsigned Align = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
2991 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
3237 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
3237 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp 473 cast<ConstantSDNode>(Op0)->getSExtValue());
476 cast<ConstantSDNode>(Op1)->getSExtValue());
575 cast<ConstantSDNode>(Addr)->getSExtValue()))
726 auto *MaskNode = dyn_cast<ConstantSDNode>(Op.getOperand(1).getNode());
726 auto *MaskNode = dyn_cast<ConstantSDNode>(Op.getOperand(1).getNode());
787 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
787 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
810 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
810 auto *MaskNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
833 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
833 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
878 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
878 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
905 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
905 auto *CountNode = dyn_cast<ConstantSDNode>(N.getOperand(1).getNode());
1174 auto *ElemN = dyn_cast<ConstantSDNode>(ElemV);
1174 auto *ElemN = dyn_cast<ConstantSDNode>(ElemV);
1214 auto *ElemN = dyn_cast<ConstantSDNode>(ElemV);
1214 auto *ElemN = dyn_cast<ConstantSDNode>(ElemV);
1375 auto *OperandC = dyn_cast<ConstantSDNode>(Operand);
1375 auto *OperandC = dyn_cast<ConstantSDNode>(Operand);
1486 if (auto *Op1 = dyn_cast<ConstantSDNode>(Node->getOperand(1))) {
1486 if (auto *Op1 = dyn_cast<ConstantSDNode>(Node->getOperand(1))) {
1500 if (auto *Op0Op1 = dyn_cast<ConstantSDNode>(Op0->getOperand(1)))
1500 if (auto *Op0Op1 = dyn_cast<ConstantSDNode>(Op0->getOperand(1)))
1530 uint64_t Val = cast<ConstantSDNode>(Node)->getZExtValue();
1548 isInt<16>(cast<ConstantSDNode>(Op1)->getSExtValue()) &&
1550 isInt<16>(cast<ConstantSDNode>(Op0)->getSExtValue())))) {
1554 cast<ConstantSDNode>(CCValid.getNode())->getZExtValue();
1556 cast<ConstantSDNode>(CCMask.getNode())->getZExtValue();
1824 auto *TrueOp = dyn_cast<ConstantSDNode>(Node->getOperand(0));
1824 auto *TrueOp = dyn_cast<ConstantSDNode>(Node->getOperand(0));
1825 auto *FalseOp = dyn_cast<ConstantSDNode>(Node->getOperand(1));
1825 auto *FalseOp = dyn_cast<ConstantSDNode>(Node->getOperand(1));
1833 auto *CCValidOp = dyn_cast<ConstantSDNode>(Node->getOperand(2));
1833 auto *CCValidOp = dyn_cast<ConstantSDNode>(Node->getOperand(2));
1834 auto *CCMaskOp = dyn_cast<ConstantSDNode>(Node->getOperand(3));
1834 auto *CCMaskOp = dyn_cast<ConstantSDNode>(Node->getOperand(3));
lib/Target/SystemZ/SystemZISelLowering.cpp 1159 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1159 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1166 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1166 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1173 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1173 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1180 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1180 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1187 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1187 if (auto *C = dyn_cast<ConstantSDNode>(Op))
1712 unsigned Id = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
1738 unsigned Id = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1962 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1.getNode());
1962 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1.getNode());
1995 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1);
1995 auto *ConstOp1 = cast<ConstantSDNode>(C.Op1);
2086 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1);
2086 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1);
2124 cast<ConstantSDNode>(C.Op0.getOperand(1))->getZExtValue() == 0xffffffff)
2188 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
2189 auto *C1 = dyn_cast<ConstantSDNode>(C.Op0.getOperand(1));
2189 auto *C1 = dyn_cast<ConstantSDNode>(C.Op0.getOperand(1));
2213 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
2229 auto *Shift = dyn_cast<ConstantSDNode>(N.getOperand(1));
2229 auto *Shift = dyn_cast<ConstantSDNode>(N.getOperand(1));
2342 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1);
2342 auto *ConstOp1 = dyn_cast<ConstantSDNode>(C.Op1);
2350 ConstantSDNode *Mask = nullptr;
2354 Mask = dyn_cast<ConstantSDNode>(NewC.Op1);
2434 auto *Mask = dyn_cast<ConstantSDNode>(C.Op0.getOperand(1));
2434 auto *Mask = dyn_cast<ConstantSDNode>(C.Op0.getOperand(1));
2484 uint64_t Constant = cast<ConstantSDNode>(CmpOp1)->getZExtValue();
2771 cast<ConstantSDNode>(Neg.getOperand(0))->getZExtValue() == 0 &&
2806 cast<ConstantSDNode>(C.Op1)->getZExtValue() == 0) {
3060 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
3091 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
3220 dyn_cast<ConstantSDNode>(Align)->getZExtValue() : 0);
3410 int64_t Value = int32_t(cast<ConstantSDNode>(LowOp)->getZExtValue());
3420 uint64_t Mask = cast<ConstantSDNode>(HighOp.getOperand(1))->getZExtValue();
3624 cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue());
3626 cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue());
3688 if (auto *Const = dyn_cast<ConstantSDNode>(Src2)) {
3688 if (auto *Const = dyn_cast<ConstantSDNode>(Src2)) {
3752 if (auto *Op2 = dyn_cast<ConstantSDNode>(Src2)) {
3752 if (auto *Op2 = dyn_cast<ConstantSDNode>(Src2)) {
3894 bool IsData = cast<ConstantSDNode>(Op.getOperand(4))->getZExtValue();
3900 bool IsWrite = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue();
3946 unsigned Id = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
4166 isa<ConstantSDNode>(ShuffleOp.getOperand(1))) {
4538 unsigned Elem = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
4810 uint64_t Index = cast<ConstantSDNode>(Op2)->getZExtValue();
4836 if (auto *CIndexN = dyn_cast<ConstantSDNode>(Op1)) {
4836 if (auto *CIndexN = dyn_cast<ConstantSDNode>(Op1)) {
5382 if (auto *IndexN = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
5382 if (auto *IndexN = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
5414 auto *TrueOp = dyn_cast<ConstantSDNode>(N0.getOperand(0));
5414 auto *TrueOp = dyn_cast<ConstantSDNode>(N0.getOperand(0));
5415 auto *FalseOp = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5415 auto *FalseOp = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5464 auto *SraAmt = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5464 auto *SraAmt = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5467 if (auto *ShlAmt = dyn_cast<ConstantSDNode>(Inner.getOperand(1))) {
5467 if (auto *ShlAmt = dyn_cast<ConstantSDNode>(Inner.getOperand(1))) {
5716 if (auto *IndexN = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
5716 if (auto *IndexN = dyn_cast<ConstantSDNode>(N->getOperand(1))) {
5754 cast<ConstantSDNode>(Op0.getOperand(1))->getZExtValue() == 0) {
5762 cast<ConstantSDNode>(U->getOperand(1))->getZExtValue() == 1) {
5805 cast<ConstantSDNode>(Op0.getOperand(1))->getZExtValue() == 0) {
5813 cast<ConstantSDNode>(U->getOperand(1))->getZExtValue() == 2) {
5961 auto *CompareRHS = dyn_cast<ConstantSDNode>(ICmp->getOperand(1));
5961 auto *CompareRHS = dyn_cast<ConstantSDNode>(ICmp->getOperand(1));
5975 auto *TrueVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(0));
5975 auto *TrueVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(0));
5978 auto *FalseVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(1));
5978 auto *FalseVal = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(1));
5987 auto *NewCCValid = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(2));
5987 auto *NewCCValid = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(2));
5988 auto *NewCCMask = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(3));
5988 auto *NewCCMask = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(3));
6003 auto *SRACount = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(1));
6003 auto *SRACount = dyn_cast<ConstantSDNode>(CompareLHS->getOperand(1));
6009 auto *SHLCount = dyn_cast<ConstantSDNode>(SHL->getOperand(1));
6009 auto *SHLCount = dyn_cast<ConstantSDNode>(SHL->getOperand(1));
6047 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(1));
6047 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(1));
6048 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(2));
6048 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(2));
6071 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(2));
6071 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(2));
6072 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(3));
6072 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(3));
6094 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(1));
6094 auto *CCValid = dyn_cast<ConstantSDNode>(N->getOperand(1));
6095 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(2));
6095 auto *CCMask = dyn_cast<ConstantSDNode>(N->getOperand(2));
6105 auto *SelectCCValid = dyn_cast<ConstantSDNode>(Select->getOperand(2));
6105 auto *SelectCCValid = dyn_cast<ConstantSDNode>(Select->getOperand(2));
6106 auto *SelectCCMask = dyn_cast<ConstantSDNode>(Select->getOperand(3));
6106 auto *SelectCCMask = dyn_cast<ConstantSDNode>(Select->getOperand(3));
6112 auto *TrueVal = dyn_cast<ConstantSDNode>(Select->getOperand(0));
6112 auto *TrueVal = dyn_cast<ConstantSDNode>(Select->getOperand(0));
6113 auto *FalseVal = dyn_cast<ConstantSDNode>(Select->getOperand(1));
6113 auto *FalseVal = dyn_cast<ConstantSDNode>(Select->getOperand(1));
6192 unsigned Id = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
6236 unsigned Mask = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue();
6245 unsigned FirstIdx = cast<ConstantSDNode>(Op.getOperand(3))->getZExtValue();
6322 unsigned Id = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
6376 if (Known.getBitWidth() < BitWidth && isa<ConstantSDNode>(SrcOp))
6422 unsigned Id = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
lib/Target/SystemZ/SystemZSelectionDAGInfo.cpp 55 if (auto *CSize = dyn_cast<ConstantSDNode>(Size))
55 if (auto *CSize = dyn_cast<ConstantSDNode>(Size))
84 if (auto *CSize = dyn_cast<ConstantSDNode>(Size)) {
84 if (auto *CSize = dyn_cast<ConstantSDNode>(Size)) {
88 if (auto *CByte = dyn_cast<ConstantSDNode>(Byte)) {
88 if (auto *CByte = dyn_cast<ConstantSDNode>(Byte)) {
127 auto *CByte = dyn_cast<ConstantSDNode>(Byte);
127 auto *CByte = dyn_cast<ConstantSDNode>(Byte);
183 if (auto *CSize = dyn_cast<ConstantSDNode>(Size)) {
183 if (auto *CSize = dyn_cast<ConstantSDNode>(Size)) {
lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp 96 cast<ConstantSDNode>(Node->getOperand(2).getNode())->getZExtValue();
169 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue();
195 unsigned IntNo = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue();
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp 1067 unsigned Depth = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1204 IntNo = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
1207 IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1231 int Tag = cast<ConstantSDNode>(Op.getOperand(2).getNode())->getZExtValue();
1480 if (isa<ConstantSDNode>(IdxNode) || IdxNode->isUndef())
1527 auto *SplatConst = dyn_cast<ConstantSDNode>(SplatVal);
1527 auto *SplatConst = dyn_cast<ConstantSDNode>(SplatVal);
lib/Target/X86/X86ISelDAGToDAG.cpp 442 const APInt &Val = cast<ConstantSDNode>(N->getOperand(1))->getAPIntValue();
480 if (auto *CN = dyn_cast<ConstantSDNode>(N))
480 if (auto *CN = dyn_cast<ConstantSDNode>(N))
613 if (ConstantSDNode *Imm = dyn_cast<ConstantSDNode>(Op1)) {
613 if (ConstantSDNode *Imm = dyn_cast<ConstantSDNode>(Op1)) {
676 auto *C = dyn_cast<ConstantSDNode>(U0.getOperand(0));
676 auto *C = dyn_cast<ConstantSDNode>(U0.getOperand(0));
682 auto *C = dyn_cast<ConstantSDNode>(U1.getOperand(0));
682 auto *C = dyn_cast<ConstantSDNode>(U1.getOperand(0));
697 if (isa<ConstantSDNode>(U->getOperand(1)))
1381 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Address))
1381 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Address))
1571 !isa<ConstantSDNode>(Shift.getOperand(1)) ||
1617 int64_t Mask = cast<ConstantSDNode>(N->getOperand(1))->getSExtValue();
1631 !isa<ConstantSDNode>(Shift.getOperand(1)))
1707 !isa<ConstantSDNode>(Shift.getOperand(1)))
1795 !isa<ConstantSDNode>(Shift.getOperand(1)) ||
1866 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N))
1866 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N))
1884 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
1915 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1915 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1))) {
1930 ConstantSDNode *AddVal = cast<ConstantSDNode>(ShVal.getOperand(1));
1930 ConstantSDNode *AddVal = cast<ConstantSDNode>(ShVal.getOperand(1));
1958 if (!isa<ConstantSDNode>(N.getOperand(1)) ||
1959 !isa<ConstantSDNode>(And.getOperand(1)))
1981 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1)))
1981 if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N.getOperand(1)))
1993 isa<ConstantSDNode>(MulVal.getOperand(1))) {
1995 ConstantSDNode *AddVal =
1996 cast<ConstantSDNode>(MulVal.getOperand(1));
2104 if (!isa<ConstantSDNode>(N.getOperand(1)))
2143 auto *ShAmtC = dyn_cast<ConstantSDNode>(Shl.getOperand(1));
2143 auto *ShAmtC = dyn_cast<ConstantSDNode>(Shl.getOperand(1));
2204 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue();
2224 AM.Scale = cast<ConstantSDNode>(Mgs->getScale())->getZExtValue();
2361 if (const ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
2361 if (const ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
2543 if (auto *CN = dyn_cast<ConstantSDNode>(N)) {
2543 if (auto *CN = dyn_cast<ConstantSDNode>(N)) {
3122 if (auto *OperandC = dyn_cast<ConstantSDNode>(Operand)) {
3122 if (auto *OperandC = dyn_cast<ConstantSDNode>(Operand)) {
3283 auto V0 = dyn_cast<ConstantSDNode>(ShiftAmt.getOperand(0));
3482 ConstantSDNode *MaskCst = dyn_cast<ConstantSDNode>(N1);
3482 ConstantSDNode *MaskCst = dyn_cast<ConstantSDNode>(N1);
3483 ConstantSDNode *ShiftCst = dyn_cast<ConstantSDNode>(N0->getOperand(1));
3483 ConstantSDNode *ShiftCst = dyn_cast<ConstantSDNode>(N0->getOperand(1));
3577 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue();
3610 const ConstantInt *Val = cast<ConstantSDNode>(Imm)->getConstantIntValue();
3662 if (isa<ConstantSDNode>(Add1) &&
3663 cast<ConstantSDNode>(Add1)->getZExtValue() % Size == 0) {
3668 isa<ConstantSDNode>(Add0) &&
3669 cast<ConstantSDNode>(Add0)->getZExtValue() != 0 &&
3670 cast<ConstantSDNode>(Add0)->getZExtValue() % Size == 0) {
3732 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
3732 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
3756 ConstantSDNode *ShlCst = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
3756 ConstantSDNode *ShlCst = dyn_cast<ConstantSDNode>(Shift.getOperand(1));
3895 auto *And1C = dyn_cast<ConstantSDNode>(And->getOperand(1));
3895 auto *And1C = dyn_cast<ConstantSDNode>(And->getOperand(1));
4533 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
4533 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
5008 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
5008 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N0.getOperand(1));
lib/Target/X86/X86ISelLowering.cpp 4689 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
4689 if (ConstantSDNode *RHSC = dyn_cast<ConstantSDNode>(RHS)) {
5066 return !isa<ConstantSDNode>(Y);
5092 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
5092 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
5579 isa<ConstantSDNode>(N->getOperand(2))) {
5658 if (!isa<ConstantSDNode>(Idx))
5665 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
6052 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) {
6052 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) {
6077 auto *Cst = cast<ConstantSDNode>(Src);
6077 auto *Cst = cast<ConstantSDNode>(Src);
6186 isa<ConstantSDNode>(Op.getOperand(0).getOperand(0))) {
6192 auto *CN = cast<ConstantSDNode>(Op.getOperand(0).getOperand(0));
6192 auto *CN = cast<ConstantSDNode>(Op.getOperand(0).getOperand(0));
6200 isa<ConstantSDNode>(Op.getOperand(2))) {
6223 isa<ConstantSDNode>(Op.getOperand(1))) {
6433 DecodeBLENDMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6441 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6448 DecodeINSERTPSMask(cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6453 if (isa<ConstantSDNode>(N->getOperand(1)) &&
6454 isa<ConstantSDNode>(N->getOperand(2))) {
6464 if (isa<ConstantSDNode>(N->getOperand(2)) &&
6465 isa<ConstantSDNode>(N->getOperand(3))) {
6501 DecodePALIGNRMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6511 DecodePSLLDQMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6519 DecodePSRLDQMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6528 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6534 DecodePSHUFHWMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6541 DecodePSHUFLWMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6595 DecodeVPERMMask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6608 DecodeVPERM2X128Mask(NumElems, cast<ConstantSDNode>(ImmN)->getZExtValue(),
6617 cast<ConstantSDNode>(ImmN)->getZExtValue(), Mask);
6641 if (ConstantSDNode *CtrlOp = dyn_cast<ConstantSDNode>(CtrlNode)) {
6641 if (ConstantSDNode *CtrlOp = dyn_cast<ConstantSDNode>(CtrlNode)) {
6980 if (!isa<ConstantSDNode>(N.getOperand(2)) ||
6987 isa<ConstantSDNode>(Sub.getOperand(1))) {
7054 if (!SrcExtract || !isa<ConstantSDNode>(SrcExtract.getOperand(1)))
7077 if (!isa<ConstantSDNode>(InIndex) ||
7078 cast<ConstantSDNode>(InIndex)->getAPIntValue().uge(NumElts))
7099 if (!isa<ConstantSDNode>(ExIndex) ||
7100 cast<ConstantSDNode>(ExIndex)->getAPIntValue().uge(NumElts))
7369 isa<ConstantSDNode>(N->getOperand(2))) {
7383 isa<ConstantSDNode>(N->getOperand(1))) {
7571 !isa<ConstantSDNode>(Elt.getOperand(1)))
7759 if (isa<ConstantSDNode>(Elt.getOperand(1))) {
7768 if (isa<ConstantSDNode>(Elt.getOperand(1))) {
8328 if (ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Ld))
8328 if (ConstantSDNode *CI = dyn_cast<ConstantSDNode>(Ld))
8381 int Idx = cast<ConstantSDNode>(ExtIdx)->getZExtValue();
8444 if (!isa<ConstantSDNode>(ExtIdx))
8489 Immediate |= (cast<ConstantSDNode>(In)->getZExtValue() & 0x1) << idx;
8517 if (!isa<ConstantSDNode>(In))
8520 Immediate |= (cast<ConstantSDNode>(In)->getZExtValue() & 0x1) << idx;
8637 isa<ConstantSDNode>(Op0.getOperand(1)) &&
8638 isa<ConstantSDNode>(Op1.getOperand(1)));
8642 unsigned I0 = cast<ConstantSDNode>(Op0.getOperand(1))->getZExtValue();
8643 unsigned I1 = cast<ConstantSDNode>(Op1.getOperand(1))->getZExtValue();
8790 !isa<ConstantSDNode>(Op0.getOperand(1)) ||
8791 !isa<ConstantSDNode>(Op1.getOperand(1)) ||
8795 unsigned I0 = cast<ConstantSDNode>(Op0.getOperand(1))->getZExtValue();
8984 !isa<ConstantSDNode>(Op0.getOperand(1)) ||
8985 !isa<ConstantSDNode>(Op1.getOperand(1)) || !Op.hasOneUse())
9228 if (!isa<ConstantSDNode>(RHS))
9572 auto *PermIdx = dyn_cast<ConstantSDNode>(ExtractedIndex.getOperand(1));
9572 auto *PermIdx = dyn_cast<ConstantSDNode>(ExtractedIndex.getOperand(1));
9620 if (!isa<ConstantSDNode>(Elt) && !isa<ConstantFPSDNode>(Elt)) {
9656 if (auto *C = dyn_cast<ConstantSDNode>(Elt))
9656 if (auto *C = dyn_cast<ConstantSDNode>(Elt))
9680 unsigned InsertC = cast<ConstantSDNode>(InsIndex)->getZExtValue();
10471 else if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
10471 else if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
12451 if (!WideVT.is256BitVector() || !isa<ConstantSDNode>(N0.getOperand(1)) ||
12452 !isa<ConstantSDNode>(N1.getOperand(1)))
12542 auto ConstantIdx = dyn_cast<ConstantSDNode>(V.getOperand(2));
17316 if (isa<ConstantSDNode>(Op.getOperand(1)))
17338 if (!isa<ConstantSDNode>(Idx)) {
17349 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
17382 if (!isa<ConstantSDNode>(Idx)) {
17416 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
17526 if (!isa<ConstantSDNode>(Idx)) {
17559 auto *N2C = dyn_cast<ConstantSDNode>(N2);
17559 auto *N2C = dyn_cast<ConstantSDNode>(N2);
17734 if (!isa<ConstantSDNode>(Idx))
17737 unsigned IdxVal = cast<ConstantSDNode>(Idx)->getZExtValue();
18386 !isa<ConstantSDNode>(Extract.getOperand(1)))
19673 !isa<ConstantSDNode>(LHS.getOperand(1)) ||
19674 !isa<ConstantSDNode>(RHS.getOperand(1)) ||
19924 if (!isa<ConstantSDNode>(Idx))
19941 unsigned CIdx = cast<ConstantSDNode>(Idx)->getZExtValue();
20151 ConstantSDNode *COp0 = dyn_cast<ConstantSDNode>(Op0);
20151 ConstantSDNode *COp0 = dyn_cast<ConstantSDNode>(Op0);
20152 ConstantSDNode *COp1 = dyn_cast<ConstantSDNode>(Op1);
20152 ConstantSDNode *COp1 = dyn_cast<ConstantSDNode>(Op1);
20392 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1);
20392 ConstantSDNode *AndRHS = cast<ConstantSDNode>(Op1);
20554 auto *Elt = dyn_cast<ConstantSDNode>(BV->getOperand(i));
20554 auto *Elt = dyn_cast<ConstantSDNode>(BV->getOperand(i));
20761 ConstantSDNode *C1 = isConstOrConstSplat(Op1);
21420 IllegalFPCMov = !hasFPCMov(cast<ConstantSDNode>(CC)->getSExtValue());
21467 unsigned CondCode = cast<ConstantSDNode>(CC)->getZExtValue();
22021 switch (cast<ConstantSDNode>(CC)->getZExtValue()) {
22475 auto *ND = cast<ConstantSDNode>(CurrentOp);
22475 auto *ND = cast<ConstantSDNode>(CurrentOp);
22487 auto *ND = cast<ConstantSDNode>(CurrentOp);
22487 auto *ND = cast<ConstantSDNode>(CurrentOp);
22499 auto *ND = cast<ConstantSDNode>(CurrentOp);
22499 auto *ND = cast<ConstantSDNode>(CurrentOp);
22523 if (ConstantSDNode *CShAmt = dyn_cast<ConstantSDNode>(ShAmt))
22523 if (ConstantSDNode *CShAmt = dyn_cast<ConstantSDNode>(ShAmt))
22655 if (auto *MaskConst = dyn_cast<ConstantSDNode>(Mask))
22655 if (auto *MaskConst = dyn_cast<ConstantSDNode>(Mask))
22741 if (auto *C = dyn_cast<ConstantSDNode>(Rnd))
22741 if (auto *C = dyn_cast<ConstantSDNode>(Rnd))
22747 if (auto *C = dyn_cast<ConstantSDNode>(Rnd)) {
22747 if (auto *C = dyn_cast<ConstantSDNode>(Rnd)) {
22761 if (auto *C = dyn_cast<ConstantSDNode>(Rnd)) {
22761 if (auto *C = dyn_cast<ConstantSDNode>(Rnd)) {
23257 auto Round = cast<ConstantSDNode>(Op.getOperand(2));
23267 auto Round = cast<ConstantSDNode>(Op.getOperand(3));
23624 if (auto *C = dyn_cast<ConstantSDNode>(ShAmt)) {
23624 if (auto *C = dyn_cast<ConstantSDNode>(ShAmt)) {
23676 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23676 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23705 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23705 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23741 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23741 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23771 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
23771 auto *C = dyn_cast<ConstantSDNode>(ScaleOp);
25721 ConstantSDNode *ND = cast<ConstantSDNode>(Op);
25721 ConstantSDNode *ND = cast<ConstantSDNode>(Op);
25864 auto *Cst1 = dyn_cast<ConstantSDNode>(Amt1);
25864 auto *Cst1 = dyn_cast<ConstantSDNode>(Amt1);
25865 auto *Cst2 = dyn_cast<ConstantSDNode>(Amt2);
25865 auto *Cst2 = dyn_cast<ConstantSDNode>(Amt2);
31440 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
31440 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op.getOperand(1));
31521 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
31521 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
32833 isa<ConstantSDNode>(Src.getOperand(1))) {
33616 unsigned InsertPSMask = cast<ConstantSDNode>(Op2)->getZExtValue();
34317 auto *Amt = cast<ConstantSDNode>(Op.getOperand(1));
34317 auto *Amt = cast<ConstantSDNode>(Op.getOperand(1));
34356 auto *Amt = cast<ConstantSDNode>(Op.getOperand(1));
34356 auto *Amt = cast<ConstantSDNode>(Op.getOperand(1));
34747 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op1)) {
34747 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op1)) {
34759 if (auto *Shift2Imm = dyn_cast<ConstantSDNode>(Op0.getOperand(1))) {
34759 if (auto *Shift2Imm = dyn_cast<ConstantSDNode>(Op0.getOperand(1))) {
34788 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
34788 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op.getOperand(1))) {
34812 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op1)) {
34812 if (auto *ShiftImm = dyn_cast<ConstantSDNode>(Op1)) {
34861 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
34861 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(1));
34900 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
34900 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
35004 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
35004 auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
35073 if (!isa<ConstantSDNode>(EltNo))
35113 int Elt = cast<ConstantSDNode>(EltNo)->getZExtValue();
35324 if (!In.isUndef() && (cast<ConstantSDNode>(In)->getZExtValue() & 0x1))
35640 isa<ConstantSDNode>(N0)) {
35641 auto *C = cast<ConstantSDNode>(N0);
35641 auto *C = cast<ConstantSDNode>(N0);
35677 !isa<ConstantSDNode>(LogicOp0.getOperand(0))) {
35684 !isa<ConstantSDNode>(LogicOp1.getOperand(0))) {
36051 if (SrcSVT == MVT::i1 || !isa<ConstantSDNode>(Idx))
36386 auto *CIdx = dyn_cast<ConstantSDNode>(EltIdx);
36386 auto *CIdx = dyn_cast<ConstantSDNode>(EltIdx);
36483 isa<ConstantSDNode>(Use->getOperand(1)) &&
36665 auto *TrueC = dyn_cast<ConstantSDNode>(LHS);
36665 auto *TrueC = dyn_cast<ConstantSDNode>(LHS);
36666 auto *FalseC = dyn_cast<ConstantSDNode>(RHS);
36666 auto *FalseC = dyn_cast<ConstantSDNode>(RHS);
37143 if (auto *OpRHSConst = OpRHSBV->getConstantSplatNode()) {
37284 auto *OpRHSC = dyn_cast<ConstantSDNode>(OpRHS);
37284 auto *OpRHSC = dyn_cast<ConstantSDNode>(OpRHS);
37292 auto *CmpRHSC = dyn_cast<ConstantSDNode>(CmpRHS);
37292 auto *CmpRHSC = dyn_cast<ConstantSDNode>(CmpRHS);
37370 const ConstantSDNode* C = nullptr;
37374 if ((C = dyn_cast<ConstantSDNode>(Op1)))
37376 else if ((C = dyn_cast<ConstantSDNode>(Op2)))
37426 ConstantSDNode *FVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(0));
37426 ConstantSDNode *FVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(0));
37427 ConstantSDNode *TVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(1));
37427 ConstantSDNode *TVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(1));
37541 !isa<ConstantSDNode>(CarryOp1.getOperand(1))) {
37604 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) {
37604 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) {
37605 if (ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(FalseOp)) {
37605 if (ConstantSDNode *FalseC = dyn_cast<ConstantSDNode>(FalseOp)) {
37703 ConstantSDNode *CmpAgainst = nullptr;
37705 (CmpAgainst = dyn_cast<ConstantSDNode>(Cond.getOperand(1))) &&
37706 !isa<ConstantSDNode>(Cond.getOperand(0))) {
37709 CmpAgainst == dyn_cast<ConstantSDNode>(FalseOp)) {
37715 CmpAgainst == dyn_cast<ConstantSDNode>(TrueOp)) {
37779 if (isa<ConstantSDNode>(Const) && Add.getOpcode() == ISD::ADD &&
37780 Add.hasOneUse() && isa<ConstantSDNode>(Add.getOperand(1)) &&
38136 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
38136 ConstantSDNode *C = dyn_cast<ConstantSDNode>(N->getOperand(1));
38255 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
38255 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
38299 if (auto *N1SplatC = N1BV->getConstantSplatNode()) {
38335 APInt ShlConst = (cast<ConstantSDNode>(N01))->getAPIntValue();
38336 APInt SarConst = (cast<ConstantSDNode>(N1))->getAPIntValue();
38382 auto *ShiftC = dyn_cast<ConstantSDNode>(N1);
38382 auto *ShiftC = dyn_cast<ConstantSDNode>(N1);
38383 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1));
38383 auto *AndC = dyn_cast<ConstantSDNode>(N0.getOperand(1));
38564 unsigned ShiftVal = cast<ConstantSDNode>(N1)->getZExtValue();
38583 unsigned ShiftVal2 = cast<ConstantSDNode>(N0.getOperand(1))->getZExtValue();
39118 if (!isa<ConstantSDNode>(N->getOperand(1)))
39184 !isa<ConstantSDNode>(N->getOperand(1))) {
39249 isa<ConstantSDNode>(N->getOperand(0).getOperand(1))) {
39677 isa<ConstantSDNode>(ShAmt0.getOperand(1)) &&
39684 isa<ConstantSDNode>(ShAmt1.getOperand(1)) &&
39722 if (auto *SumC = dyn_cast<ConstantSDNode>(Sum)) {
39722 if (auto *SumC = dyn_cast<ConstantSDNode>(Sum)) {
39725 isa<ConstantSDNode>(ShAmt1Op1.getOperand(1)) &&
39737 } else if (auto *ShAmt1C = dyn_cast<ConstantSDNode>(ShAmt1)) {
39737 } else if (auto *ShAmt1C = dyn_cast<ConstantSDNode>(ShAmt1)) {
39738 auto *ShAmt0C = dyn_cast<ConstantSDNode>(ShAmt0);
39738 auto *ShAmt0C = dyn_cast<ConstantSDNode>(ShAmt0);
39743 if (auto *MaskC = dyn_cast<ConstantSDNode>(Mask)) {
39743 if (auto *MaskC = dyn_cast<ConstantSDNode>(Mask)) {
39751 isa<ConstantSDNode>(Op1.getOperand(1)) &&
39799 if (!isa<ConstantSDNode>(Shift.getOperand(1)) ||
39853 auto *ShiftAmt =
40108 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
40108 ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op);
40285 auto *ConstNode = dyn_cast<ConstantSDNode>(Op);
40285 auto *ConstNode = dyn_cast<ConstantSDNode>(Op);
41305 auto *ConstN00Elt = dyn_cast<ConstantSDNode>(N00Elt.getOperand(1));
41305 auto *ConstN00Elt = dyn_cast<ConstantSDNode>(N00Elt.getOperand(1));
41306 auto *ConstN01Elt = dyn_cast<ConstantSDNode>(N01Elt.getOperand(1));
41306 auto *ConstN01Elt = dyn_cast<ConstantSDNode>(N01Elt.getOperand(1));
41307 auto *ConstN10Elt = dyn_cast<ConstantSDNode>(N10Elt.getOperand(1));
41307 auto *ConstN10Elt = dyn_cast<ConstantSDNode>(N10Elt.getOperand(1));
41308 auto *ConstN11Elt = dyn_cast<ConstantSDNode>(N11Elt.getOperand(1));
41308 auto *ConstN11Elt = dyn_cast<ConstantSDNode>(N11Elt.getOperand(1));
41720 auto *RHSC = dyn_cast<ConstantSDNode>(N->getOperand(1));
41720 auto *RHSC = dyn_cast<ConstantSDNode>(N->getOperand(1));
41771 if (auto *Cst1 = dyn_cast<ConstantSDNode>(Op1)) {
41771 if (auto *Cst1 = dyn_cast<ConstantSDNode>(Op1)) {
42126 if (!isa<ConstantSDNode>(CMovOp0.getNode()) ||
42127 !isa<ConstantSDNode>(CMovOp1.getNode()))
42228 auto *AddOp1 = dyn_cast<ConstantSDNode>(Add.getOperand(1));
42228 auto *AddOp1 = dyn_cast<ConstantSDNode>(Add.getOperand(1));
42286 if (!isa<ConstantSDNode>(CMovOp0.getNode()) ||
42287 !isa<ConstantSDNode>(CMovOp1.getNode()))
42676 return isa<ConstantSDNode>(X) || X.getValueType().isVector() ||
43372 Op.hasOneUse() && isa<ConstantSDNode>(Op.getOperand(1)) &&
43406 if (isa<ConstantSDNode>(Op.getOperand(1)))
43569 auto *ConstantX = dyn_cast<ConstantSDNode>(X);
43569 auto *ConstantX = dyn_cast<ConstantSDNode>(X);
43586 !isa<ConstantSDNode>(EFLAGS.getOperand(1))) {
43619 !isa<ConstantSDNode>(EFLAGS.getOperand(1))) {
43876 auto *Const0L = dyn_cast<ConstantSDNode>(Op0L->getOperand(1));
43876 auto *Const0L = dyn_cast<ConstantSDNode>(Op0L->getOperand(1));
43877 auto *Const1L = dyn_cast<ConstantSDNode>(Op1L->getOperand(1));
43877 auto *Const1L = dyn_cast<ConstantSDNode>(Op1L->getOperand(1));
43878 auto *Const0H = dyn_cast<ConstantSDNode>(Op0H->getOperand(1));
43878 auto *Const0H = dyn_cast<ConstantSDNode>(Op0H->getOperand(1));
43879 auto *Const1H = dyn_cast<ConstantSDNode>(Op1H->getOperand(1));
43879 auto *Const1H = dyn_cast<ConstantSDNode>(Op1H->getOperand(1));
44005 auto *ConstN00Elt = dyn_cast<ConstantSDNode>(N00Elt.getOperand(1));
44005 auto *ConstN00Elt = dyn_cast<ConstantSDNode>(N00Elt.getOperand(1));
44006 auto *ConstN01Elt = dyn_cast<ConstantSDNode>(N01Elt.getOperand(1));
44006 auto *ConstN01Elt = dyn_cast<ConstantSDNode>(N01Elt.getOperand(1));
44007 auto *ConstN10Elt = dyn_cast<ConstantSDNode>(N10Elt.getOperand(1));
44007 auto *ConstN10Elt = dyn_cast<ConstantSDNode>(N10Elt.getOperand(1));
44008 auto *ConstN11Elt = dyn_cast<ConstantSDNode>(N11Elt.getOperand(1));
44008 auto *ConstN11Elt = dyn_cast<ConstantSDNode>(N11Elt.getOperand(1));
44213 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op0)) {
44213 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op0)) {
44218 isa<ConstantSDNode>(Op1.getOperand(1))) {
44551 unsigned ExtIdx = cast<ConstantSDNode>(Ext->getOperand(1))->getZExtValue();
44626 unsigned IdxVal = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
44759 if (auto *C = dyn_cast<ConstantSDNode>(Src.getOperand(1)))
44759 if (auto *C = dyn_cast<ConstantSDNode>(Src.getOperand(1)))
44768 if (auto *C = dyn_cast<ConstantSDNode>(Src.getOperand(1)))
44768 if (auto *C = dyn_cast<ConstantSDNode>(Src.getOperand(1)))
45104 isa<ConstantSDNode>(Op.getOperand(1));
45165 (!Commute || !isa<ConstantSDNode>(N0) ||
45169 ((Commute && !isa<ConstantSDNode>(N1)) ||
45626 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45626 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45635 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45635 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45644 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45644 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45653 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45653 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45663 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45663 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45672 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45672 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45681 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45681 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45691 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45691 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45705 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45705 if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op)) {
45719 if (ConstantSDNode *CST = dyn_cast<ConstantSDNode>(Op)) {
45719 if (ConstantSDNode *CST = dyn_cast<ConstantSDNode>(Op)) {
lib/Target/X86/X86ISelLowering.h 867 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
867 SDValue X, ConstantSDNode *XC, ConstantSDNode *CC, SDValue Y,
lib/Target/X86/X86InstrInfo.cpp 5934 auto Disp1 = dyn_cast<ConstantSDNode>(Load1->getOperand(X86::AddrDisp));
5935 auto Disp2 = dyn_cast<ConstantSDNode>(Load2->getOperand(X86::AddrDisp));
lib/Target/X86/X86SelectionDAGInfo.cpp 50 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
50 ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size);
71 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
71 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
107 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
107 ConstantSDNode *ValC = dyn_cast<ConstantSDNode>(Val);
311 if (ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size))
311 if (ConstantSDNode *ConstantSize = dyn_cast<ConstantSDNode>(Size))
lib/Target/XCore/XCoreISelDAGToDAG.cpp 53 ConstantSDNode *N = cast<ConstantSDNode>(inN);
53 ConstantSDNode *N = cast<ConstantSDNode>(inN);
95 ConstantSDNode *CN = nullptr;
97 && (CN = dyn_cast<ConstantSDNode>(Addr.getOperand(1)))
136 uint64_t Val = cast<ConstantSDNode>(N)->getZExtValue();
244 unsigned IntNo = cast<ConstantSDNode>(Addr->getOperand(1))->getZExtValue();
lib/Target/XCore/XCoreISelLowering.cpp 431 Offset = cast<ConstantSDNode>(BasePtr->getOperand(1))->getSExtValue();
778 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() > 0)
794 if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() > 0)
916 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
1596 switch (cast<ConstantSDNode>(N->getOperand(1))->getZExtValue()) {
1637 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1637 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1638 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1638 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1673 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1673 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1674 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1674 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1711 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1711 ConstantSDNode *N0C = dyn_cast<ConstantSDNode>(N0);
1712 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1712 ConstantSDNode *N1C = dyn_cast<ConstantSDNode>(N1);
1833 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();