Home
last modified time | relevance | path

Searched refs:CE (Results 1 – 7 of 7) sorted by relevance

/frameworks/compile/slang/
Dslang_rs_check_ast.cpp234 void RSCheckAST::VisitCastExpr(clang::CastExpr *CE) { in VisitCastExpr() argument
235 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()
Dslang_rs_check_ast.h62 void VisitCallExpr(clang::CallExpr *CE);
64 void VisitCastExpr(clang::CastExpr *CE);
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp937 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local
938 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()
/frameworks/compile/slang/BitWriter_2_9_func/
DBitcodeWriter.cpp936 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local
937 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()
/frameworks/compile/slang/BitWriter_3_2/
DBitcodeWriter.cpp977 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local
978 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()
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp1546 auto &CE = cast<ConstantExpr>(C); in getGlobalObjectInExpr() local
1547 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()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.cpp1840 auto &CE = cast<ConstantExpr>(C); in getGlobalObjectInExpr() local
1841 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()