Searched refs:CE (Results 1 – 7 of 7) sorted by relevance
234 void RSCheckAST::VisitCastExpr(clang::CastExpr *CE) { in VisitCastExpr() argument235 if (CE->getCastKind() == clang::CK_BitCast) { in VisitCastExpr()236 clang::QualType QT = CE->getType(); in VisitCastExpr()239 if (llvm::isa<clang::ImplicitCastExpr>(CE)) { in VisitCastExpr()240 Context->ReportError(CE->getExprLoc(), "invalid implicit vector cast"); in VisitCastExpr()242 Context->ReportError(CE->getExprLoc(), "invalid vector cast"); in VisitCastExpr()247 Visit(CE->getSubExpr()); in VisitCastExpr()
62 void VisitCallExpr(clang::CallExpr *CE);64 void VisitCastExpr(clang::CastExpr *CE);
937 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local938 switch (CE->getOpcode()) { in WriteConstants()940 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()942 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()947 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()949 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()952 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()961 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()1005 Record.push_back(CE->getPredicate()); in WriteConstants()
936 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local937 switch (CE->getOpcode()) { in WriteConstants()939 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()941 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()946 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()948 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()951 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()960 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()1004 Record.push_back(CE->getPredicate()); in WriteConstants()
977 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local978 switch (CE->getOpcode()) { in WriteConstants()980 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()982 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()987 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()989 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()992 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()1001 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()1045 Record.push_back(CE->getPredicate()); in WriteConstants()
1546 auto &CE = cast<ConstantExpr>(C); in getGlobalObjectInExpr() local1547 assert(CE.getOpcode() == Instruction::BitCast || in getGlobalObjectInExpr()1548 CE.getOpcode() == Instruction::GetElementPtr || in getGlobalObjectInExpr()1549 CE.getOpcode() == Instruction::AddrSpaceCast); in getGlobalObjectInExpr()1550 if (CE.getOpcode() == Instruction::GetElementPtr) in getGlobalObjectInExpr()1551 assert(cast<GEPOperator>(CE).hasAllZeroIndices()); in getGlobalObjectInExpr()1552 return getGlobalObjectInExpr(Map, *CE.getOperand(0)); in getGlobalObjectInExpr()
1840 auto &CE = cast<ConstantExpr>(C); in getGlobalObjectInExpr() local1841 assert(CE.getOpcode() == Instruction::BitCast || in getGlobalObjectInExpr()1842 CE.getOpcode() == Instruction::GetElementPtr || in getGlobalObjectInExpr()1843 CE.getOpcode() == Instruction::AddrSpaceCast); in getGlobalObjectInExpr()1844 if (CE.getOpcode() == Instruction::GetElementPtr) in getGlobalObjectInExpr()1845 assert(cast<GEPOperator>(CE).hasAllZeroIndices()); in getGlobalObjectInExpr()1846 return getGlobalObjectInExpr(Map, *CE.getOperand(0)); in getGlobalObjectInExpr()