Home
last modified time | relevance | path

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

/frameworks/compile/slang/
Dslang_rs_foreach_lowering.cpp96 clang::CallExpr* CE, int* slot, bool* hasOptions) { in matchKernelLaunchCall() argument
97 const clang::Decl* D = CE->getCalleeDecl(); in matchKernelLaunchCall()
115 mCtxt->ReportError(CE->getExprLoc(), in matchKernelLaunchCall()
120 clang::Expr* arg0 = CE->getArg(0); in matchKernelLaunchCall()
133 mCtxt->ReportError(CE->getExprLoc(), in matchKernelLaunchCall()
221 void RSForEachLowering::VisitCallExpr(clang::CallExpr* CE) { in VisitCallExpr() argument
224 const clang::FunctionDecl* kernel = matchKernelLaunchCall(CE, &slot, &hasOptions); in VisitCallExpr()
231 const unsigned numArgsOrig = CE->getNumArgs(); in VisitCallExpr()
243 CE->getExprLoc(), in VisitCallExpr()
250 CE->setCallee(calleeNew); in VisitCallExpr()
[all …]
Dslang_rs_check_ast.cpp263 void RSCheckAST::VisitCastExpr(clang::CastExpr *CE) { in VisitCastExpr() argument
264 if (CE->getCastKind() == clang::CK_BitCast) { in VisitCastExpr()
265 clang::QualType QT = CE->getType(); in VisitCastExpr()
268 if (llvm::isa<clang::ImplicitCastExpr>(CE)) { in VisitCastExpr()
269 Context->ReportError(CE->getExprLoc(), "invalid implicit vector cast"); in VisitCastExpr()
271 Context->ReportError(CE->getExprLoc(), "invalid vector cast"); in VisitCastExpr()
276 Visit(CE->getSubExpr()); in VisitCastExpr()
Dslang_rs_foreach_lowering.h44 void VisitCallExpr(clang::CallExpr *CE);
56 const clang::FunctionDecl* matchKernelLaunchCall(clang::CallExpr* CE,
Dslang_rs_check_ast.h62 void VisitCallExpr(clang::CallExpr *CE);
64 void VisitCastExpr(clang::CastExpr *CE);
Dslang_rs_object_ref_count.h199 void VisitCallExpr(clang::CallExpr *CE);
Dslang_rs_object_ref_count.cpp1426 void RSObjectRefCount::VisitCallExpr(clang::CallExpr* CE) { in VisitCallExpr() argument
1428 const clang::FunctionDecl* FD = CE->getDirectCallee(); in VisitCallExpr()
1437 const clang::Expr* Callee = CE->getCallee(); in VisitCallExpr()
1459 clang::SourceLocation Loc = CE->getSourceRange().getBegin(); in VisitCallExpr()
1474 TempVarDecl->setInit(CE); in VisitCallExpr()
1501 getCurrentScope()->ReplaceExpr(mCtx, CE, CastExpr); in VisitCallExpr()
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp938 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local
939 switch (CE->getOpcode()) { in WriteConstants()
941 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()
943 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()
948 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()
950 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()
953 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()
962 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()
1006 Record.push_back(CE->getPredicate()); in WriteConstants()
/frameworks/compile/slang/BitWriter_3_2/
DBitcodeWriter.cpp968 } else if (const ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { in WriteConstants() local
969 switch (CE->getOpcode()) { in WriteConstants()
971 if (Instruction::isCast(CE->getOpcode())) { in WriteConstants()
973 Record.push_back(GetEncodedCastOpcode(CE->getOpcode())); in WriteConstants()
978 assert(CE->getNumOperands() == 2 && "Unknown constant expr!"); in WriteConstants()
980 Record.push_back(GetEncodedBinaryOpcode(CE->getOpcode())); in WriteConstants()
983 uint64_t Flags = GetOptimizationFlags(CE); in WriteConstants()
992 for (unsigned i = 0, e = CE->getNumOperands(); i != e; ++i) { in WriteConstants()
1036 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/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.cpp1839 auto &CE = cast<ConstantExpr>(C); in getGlobalObjectInExpr() local
1840 assert(CE.getOpcode() == Instruction::BitCast || in getGlobalObjectInExpr()
1841 CE.getOpcode() == Instruction::GetElementPtr || in getGlobalObjectInExpr()
1842 CE.getOpcode() == Instruction::AddrSpaceCast); in getGlobalObjectInExpr()
1843 if (CE.getOpcode() == Instruction::GetElementPtr) in getGlobalObjectInExpr()
1844 assert(cast<GEPOperator>(CE).hasAllZeroIndices()); in getGlobalObjectInExpr()
1845 return getGlobalObjectInExpr(Map, *CE.getOperand(0)); in getGlobalObjectInExpr()