reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/IR/ConstantsTest.cpp
  231   CHECK(ConstantExpr::getNeg(P0), "sub i32 0, " P0STR);
  233   CHECK(ConstantExpr::getNot(P0), "xor i32 " P0STR ", -1");
  234   CHECK(ConstantExpr::getAdd(P0, P0), "add i32 " P0STR ", " P0STR);
  234   CHECK(ConstantExpr::getAdd(P0, P0), "add i32 " P0STR ", " P0STR);
  235   CHECK(ConstantExpr::getAdd(P0, P0, false, true), "add nsw i32 " P0STR ", "
  236         P0STR);
  237   CHECK(ConstantExpr::getAdd(P0, P0, true, true), "add nuw nsw i32 " P0STR ", "
  238         P0STR);
  240   CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR);
  240   CHECK(ConstantExpr::getSub(P0, P0), "sub i32 " P0STR ", " P0STR);
  242   CHECK(ConstantExpr::getMul(P0, P0), "mul i32 " P0STR ", " P0STR);
  242   CHECK(ConstantExpr::getMul(P0, P0), "mul i32 " P0STR ", " P0STR);
  244   CHECK(ConstantExpr::getUDiv(P0, P0), "udiv i32 " P0STR ", " P0STR);
  244   CHECK(ConstantExpr::getUDiv(P0, P0), "udiv i32 " P0STR ", " P0STR);
  245   CHECK(ConstantExpr::getSDiv(P0, P0), "sdiv i32 " P0STR ", " P0STR);
  245   CHECK(ConstantExpr::getSDiv(P0, P0), "sdiv i32 " P0STR ", " P0STR);
  247   CHECK(ConstantExpr::getURem(P0, P0), "urem i32 " P0STR ", " P0STR);
  247   CHECK(ConstantExpr::getURem(P0, P0), "urem i32 " P0STR ", " P0STR);
  248   CHECK(ConstantExpr::getSRem(P0, P0), "srem i32 " P0STR ", " P0STR);
  248   CHECK(ConstantExpr::getSRem(P0, P0), "srem i32 " P0STR ", " P0STR);
  250   CHECK(ConstantExpr::getAnd(P0, P0), "and i32 " P0STR ", " P0STR);
  250   CHECK(ConstantExpr::getAnd(P0, P0), "and i32 " P0STR ", " P0STR);
  251   CHECK(ConstantExpr::getOr(P0, P0), "or i32 " P0STR ", " P0STR);
  251   CHECK(ConstantExpr::getOr(P0, P0), "or i32 " P0STR ", " P0STR);
  252   CHECK(ConstantExpr::getXor(P0, P0), "xor i32 " P0STR ", " P0STR);
  252   CHECK(ConstantExpr::getXor(P0, P0), "xor i32 " P0STR ", " P0STR);
  253   CHECK(ConstantExpr::getShl(P0, P0), "shl i32 " P0STR ", " P0STR);
  253   CHECK(ConstantExpr::getShl(P0, P0), "shl i32 " P0STR ", " P0STR);
  254   CHECK(ConstantExpr::getShl(P0, P0, true), "shl nuw i32 " P0STR ", " P0STR);
  254   CHECK(ConstantExpr::getShl(P0, P0, true), "shl nuw i32 " P0STR ", " P0STR);
  255   CHECK(ConstantExpr::getShl(P0, P0, false, true), "shl nsw i32 " P0STR ", "
  256         P0STR);
  257   CHECK(ConstantExpr::getLShr(P0, P0, false), "lshr i32 " P0STR ", " P0STR);
  257   CHECK(ConstantExpr::getLShr(P0, P0, false), "lshr i32 " P0STR ", " P0STR);
  258   CHECK(ConstantExpr::getLShr(P0, P0, true), "lshr exact i32 " P0STR ", " P0STR);
  258   CHECK(ConstantExpr::getLShr(P0, P0, true), "lshr exact i32 " P0STR ", " P0STR);
  259   CHECK(ConstantExpr::getAShr(P0, P0, false), "ashr i32 " P0STR ", " P0STR);
  259   CHECK(ConstantExpr::getAShr(P0, P0, false), "ashr i32 " P0STR ", " P0STR);
  260   CHECK(ConstantExpr::getAShr(P0, P0, true), "ashr exact i32 " P0STR ", " P0STR);
  260   CHECK(ConstantExpr::getAShr(P0, P0, true), "ashr exact i32 " P0STR ", " P0STR);
  262   CHECK(ConstantExpr::getSExt(P0, Int64Ty), "sext i32 " P0STR " to i64");
  263   CHECK(ConstantExpr::getZExt(P0, Int64Ty), "zext i32 " P0STR " to i64");
  269   CHECK(ConstantExpr::getExactUDiv(P0, P0), "udiv exact i32 " P0STR ", " P0STR);
  269   CHECK(ConstantExpr::getExactUDiv(P0, P0), "udiv exact i32 " P0STR ", " P0STR);
  271   CHECK(ConstantExpr::getSelect(P3, P0, P4), "select i1 " P3STR ", i32 " P0STR
  273   CHECK(ConstantExpr::getICmp(CmpInst::ICMP_EQ, P0, P4), "icmp eq i32 " P0STR