Lines Matching refs:InstArithmetic
175 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) {
180 case InstArithmetic::And:
181 case InstArithmetic::Or:
649 inline bool canRMW(const InstArithmetic *Arith) {
664 case InstArithmetic::Add:
665 case InstArithmetic::Sub:
666 case InstArithmetic::And:
667 case InstArithmetic::Or:
668 case InstArithmetic::Xor:
670 case InstArithmetic::Shl:
671 case InstArithmetic::Lshr:
672 case InstArithmetic::Ashr:
721 auto *Arith = llvm::dyn_cast<InstArithmetic>(I2);
854 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Next)) {
858 NewInst = InstArithmetic::create(Func, Arith->getOp(),
1711 void TargetX86Base<TraitsType>::lowerShift64(InstArithmetic::OpKind Op,
1727 case InstArithmetic::Shl: {
1738 case InstArithmetic::Lshr: {
1749 case InstArithmetic::Ashr: {
1770 case InstArithmetic::Shl: {
1779 case InstArithmetic::Lshr: {
1788 case InstArithmetic::Ashr: {
1812 case InstArithmetic::Shl: {
1819 case InstArithmetic::Lshr: {
1826 case InstArithmetic::Ashr: {
1855 case InstArithmetic::Shl: {
1873 case InstArithmetic::Lshr: {
1891 case InstArithmetic::Ashr: {
1924 void TargetX86Base<TraitsType>::lowerArithmetic(const InstArithmetic *Instr) {
1960 case InstArithmetic::Udiv:
1961 case InstArithmetic::Sdiv:
1962 case InstArithmetic::Urem:
1963 case InstArithmetic::Srem:
1978 case InstArithmetic::_num:
1981 case InstArithmetic::Add:
1989 case InstArithmetic::And:
1997 case InstArithmetic::Or:
2005 case InstArithmetic::Xor:
2013 case InstArithmetic::Sub:
2021 case InstArithmetic::Mul: {
2052 case InstArithmetic::Shl:
2053 case InstArithmetic::Lshr:
2054 case InstArithmetic::Ashr:
2057 case InstArithmetic::Fadd:
2058 case InstArithmetic::Fsub:
2059 case InstArithmetic::Fmul:
2060 case InstArithmetic::Fdiv:
2061 case InstArithmetic::Frem:
2064 case InstArithmetic::Udiv:
2065 case InstArithmetic::Sdiv:
2066 case InstArithmetic::Urem:
2067 case InstArithmetic::Srem:
2080 case InstArithmetic::_num:
2083 case InstArithmetic::Add: {
2089 case InstArithmetic::And: {
2095 case InstArithmetic::Or: {
2101 case InstArithmetic::Xor: {
2107 case InstArithmetic::Sub: {
2113 case InstArithmetic::Mul: {
2166 case InstArithmetic::Shl: {
2173 case InstArithmetic::Lshr: {
2180 case InstArithmetic::Ashr: {
2187 case InstArithmetic::Udiv:
2188 case InstArithmetic::Urem:
2189 case InstArithmetic::Sdiv:
2190 case InstArithmetic::Srem:
2193 case InstArithmetic::Fadd: {
2199 case InstArithmetic::Fsub: {
2205 case InstArithmetic::Fmul: {
2211 case InstArithmetic::Fdiv: {
2217 case InstArithmetic::Frem:
2226 case InstArithmetic::_num:
2229 case InstArithmetic::Add: {
2248 case InstArithmetic::And:
2253 case InstArithmetic::Or:
2258 case InstArithmetic::Xor:
2263 case InstArithmetic::Sub:
2268 case InstArithmetic::Mul:
2290 case InstArithmetic::Shl:
2298 case InstArithmetic::Lshr:
2306 case InstArithmetic::Ashr:
2314 case InstArithmetic::Udiv: {
2347 case InstArithmetic::Sdiv:
2408 case InstArithmetic::Urem: {
2447 case InstArithmetic::Srem: {
2525 case InstArithmetic::Fadd:
2530 case InstArithmetic::Fsub:
2535 case InstArithmetic::Fmul:
2540 case InstArithmetic::Fdiv:
2545 case InstArithmetic::Frem:
2587 lowerArithAndConsumer(llvm::cast<InstArithmetic>(Producer), Br);
3866 const InstArithmetic *Arith, const Inst *Consumer) {
3875 case InstArithmetic::And:
3885 case InstArithmetic::Or:
5393 if (auto *Arith = llvm::dyn_cast_or_null<const InstArithmetic>(Instr)) {
5394 return (Arith->getOp() == InstArithmetic::Add);
5528 if (auto *ArithInst = llvm::dyn_cast<InstArithmetic>(IndexInst)) {
5537 case InstArithmetic::Mul: {
5562 case InstArithmetic::Shl: {
5611 if (auto *ArithInst = llvm::dyn_cast<const InstArithmetic>(Definition)) {
5613 case InstArithmetic::Add:
5614 case InstArithmetic::Sub:
5615 case InstArithmetic::Or:
5631 if (ArithInst->getOp() == InstArithmetic::Or) {
5644 llvm::dyn_cast<InstArithmetic>(VMetadata->getSingleDefinition(Var));
5649 if (VarDef->getOp() == InstArithmetic::Shl) {
5654 } else if (VarDef->getOp() == InstArithmetic::Mul) {
5675 IsAdd = ArithInst->getOp() == InstArithmetic::Add;
7249 case InstArithmetic::Add:
7253 case InstArithmetic::Sub:
7257 case InstArithmetic::And:
7261 case InstArithmetic::Or:
7265 case InstArithmetic::Xor:
7277 case InstArithmetic::Add:
7281 case InstArithmetic::Sub:
7285 case InstArithmetic::And:
7289 case InstArithmetic::Or:
7293 case InstArithmetic::Xor:
7354 if (auto *Arith = llvm::dyn_cast<InstArithmetic>(Instr)) {
7362 case InstArithmetic::Udiv:
7365 case InstArithmetic::Sdiv:
7368 case InstArithmetic::Urem:
7371 case InstArithmetic::Srem:
7382 case InstArithmetic::Mul:
7388 case InstArithmetic::Shl:
7389 case InstArithmetic::Lshr:
7390 case InstArithmetic::Ashr:
7394 case InstArithmetic::Udiv:
7395 case InstArithmetic::Urem:
7396 case InstArithmetic::Sdiv:
7397 case InstArithmetic::Srem:
7398 case InstArithmetic::Frem:
7407 case InstArithmetic::Frem: