• Home
  • Raw
  • Download

Lines Matching refs:Usr

1246 static bool usesOperand(User *Usr, Value *Op) {  in usesOperand()  argument
1247 return find(Usr->operands(), Op) != Usr->op_end(); in usesOperand()
1254 static bool isOperationFoldable(User *Usr) { in isOperationFoldable() argument
1255 return isa<CastInst>(Usr) || isa<BinaryOperator>(Usr) || isa<FreezeInst>(Usr); in isOperationFoldable()
1262 static ValueLatticeElement constantFoldUser(User *Usr, Value *Op, in constantFoldUser() argument
1265 assert(isOperationFoldable(Usr) && "Precondition"); in constantFoldUser()
1268 if (auto *CI = dyn_cast<CastInst>(Usr)) { in constantFoldUser()
1275 } else if (auto *BO = dyn_cast<BinaryOperator>(Usr)) { in constantFoldUser()
1286 } else if (isa<FreezeInst>(Usr)) { in constantFoldUser()
1287 assert(cast<FreezeInst>(Usr)->getOperand(0) == Op && "Operand 0 isn't Op"); in constantFoldUser()
1324 if (User *Usr = dyn_cast<User>(Val)) { in getEdgeValueLocal() local
1329 if (isa<IntegerType>(Usr->getType()) && isOperationFoldable(Usr)) { in getEdgeValueLocal()
1331 if (usesOperand(Usr, Condition)) { in getEdgeValueLocal()
1340 Result = constantFoldUser(Usr, Condition, ConditionVal, DL); in getEdgeValueLocal()
1349 for (unsigned i = 0; i < Usr->getNumOperands(); ++i) { in getEdgeValueLocal()
1350 Value *Op = Usr->getOperand(i); in getEdgeValueLocal()
1354 Result = constantFoldUser(Usr, Op, OpConst.getValue(), DL); in getEdgeValueLocal()
1375 if (User *Usr = dyn_cast<User>(Val)) in getEdgeValueLocal() local
1376 ValUsesConditionAndMayBeFoldable = isOperationFoldable(Usr) && in getEdgeValueLocal()
1377 usesOperand(Usr, Condition); in getEdgeValueLocal()
1392 User *Usr = cast<User>(Val); in getEdgeValueLocal() local
1395 constantFoldUser(Usr, Condition, CaseValue, DL); in getEdgeValueLocal()