Searched refs:slangAssert (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/compile/slang/
H A Dslang_assert.h24 #define slangAssert(v) do {} while (0) macro
27 #define slangAssert(v) \ macro
30 fprintf(stderr, "slangAssert failed at %s:%d - '%s'\n", \
H A Dslang_bitcode_gen.cpp78 slangAssert(false && "Invalid target API value");
96 slangAssert(ActualWrapperLen > 0);
H A Dslang_rs_export_element.cpp82 slangAssert(EI != nullptr && "Element info not found");
91 slangAssert(EI->vsize == 1 && "Element not a primitive class (please "
99 slangAssert(EI->type == EPT->getType() && "Element has unexpected type");
104 slangAssert(EI->vsize > 1 && "Element not a vector class (please check "
114 slangAssert(EI->type == EVT->getType() && "Element has unexpected type");
115 slangAssert(EI->vsize == EVT->getNumElement() && "Element has unexpected "
H A Dslang_rs_export_foreach.cpp56 slangAssert(Context && FD);
88 slangAssert(Context && FD);
90 slangAssert(numParams > 0);
166 slangAssert(Context && FD);
274 slangAssert(mOut == nullptr);
275 slangAssert(mUsrData == nullptr);
277 slangAssert(!mHasReturnType);
311 slangAssert(Context && FD);
315 slangAssert(!Name.empty() && "Function must have a name");
331 slangAssert(Q
[all...]
H A Dslang_rs_export_func.h77 slangAssert((mParamPacketType != nullptr) &&
82 slangAssert((mParamPacketType != nullptr) &&
H A Dslang_rs_special_func.cpp57 slangAssert(Context && FD);
100 slangAssert(false && "must be called on root, init or .rs.dtor function!");
H A Dslang_rs_export_func.cpp37 slangAssert(Context && FD);
55 slangAssert(!Name.empty() && "Function must have a name");
105 slangAssert(!T.isNull());
117 slangAssert((ET->getClass() == RSExportType::ExportClassRecord) &&
133 slangAssert(mParamPacketType != nullptr);
H A Dslang_rs_special_kernel_param.cpp102 slangAssert(IndexOfFirstSpecialParameter != nullptr);
103 slangAssert(SignatureMetadata != nullptr);
104 slangAssert(*SignatureMetadata == 0);
218 slangAssert(!"Unexpected special parameter type");
222 slangAssert(!(*SignatureMetadata & SP.bitval));
H A Dslang_diagnostic_buffer.cpp66 slangAssert(0 && "Diagnostic not handled during diagnostic buffering!");
H A Dslang_rs_export_var.h63 slangAssert(i < mNumInits);
H A Dslang_rs_object_ref_count.h168 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT));
172 slangAssert(false && "incorrect type");
182 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT));
186 slangAssert(false && "incorrect type");
H A Dslang_rs_ast_replace.h45 slangAssert(mNewExpr &&
52 slangAssert(mOldStmt);
H A Dslang_rs_reflection_cpp.cpp57 slangAssert(false && "GetMatrixTypeName : Unsupported matrix dimension");
63 slangAssert(false && "Non-array type post identifier?");
113 default: { slangAssert(false && "Unknown class of type"); }
327 slangAssert(ef->getIns().size() == 1);
353 slangAssert(ef->getIns().size() == 1);
373 slangAssert(ef->getIns().size() == 1);
544 default: { slangAssert(false && "Unknown class of type"); }
586 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
619 slangAssert(EVT != nullptr);
672 slangAssert(fals
[all...]
H A Dslang_rs_reflection.cpp119 slangAssert(false && "GetMatrixTypeName : Unsupported matrix dimension");
130 slangAssert((Index < (sizeof(VectorAccessorMap) / sizeof(const char *))) &&
174 slangAssert(false && "GetPackerAPIName : Unknown primitive data type");
195 slangAssert(!(Style & TypeNameC) &&
214 slangAssert(!(Style & TypeNameC) &&
223 slangAssert(!(Style & TypeNameC) &&
230 slangAssert(!(Style & TypeNameC) &&
237 default: { slangAssert(false && "Unknown class of type"); }
286 default: { slangAssert(false && "Unknown class of type"); }
304 slangAssert(fals
[all...]
H A Dslang_rs_context.cpp80 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
109 slangAssert(!FD->getName().empty() && "Function name should not be empty");
115 slangAssert(FD->getStorageClass() == clang::SC_None);
139 slangAssert((mTargetAPI < SLANG_FEATURE_SINGLE_SOURCE_API ||
176 slangAssert(TUDecl != nullptr && "Translation unit declaration (top-level "
285 slangAssert(numExportedForEach == 1);
H A Dslang_rs_export_foreach.h152 slangAssert((mParamPacketType != nullptr) &&
158 slangAssert((mParamPacketType != nullptr) &&
H A Dslang_rs_object_ref_count.cpp61 slangAssert((FD->getNumParams() == 2) &&
65 slangAssert((FD->getNumParams() == 1) &&
75 slangAssert(PVT->isPointerType() &&
81 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT)
87 slangAssert(false && "incorrect type");
117 slangAssert(CompoundStmtCount == NewStmtCount);
131 slangAssert(CS);
160 slangAssert(Once <= 1);
164 slangAssert(Once == 0);
268 slangAssert(RefRSVa
[all...]
H A Dslang_rs_export_type.cpp204 slangAssert(false && "Variables should be validated before exporting");
289 slangAssert(false && "Unknown type cannot be exported");
416 slangAssert(false && "Unknown type cannot be validated");
530 slangAssert(false && "Unknown type cannot be exported");
758 slangAssert(false && "Unknown data type of the builtin");
781 slangAssert(*RI != nullptr && "cannot be NULL object");
1091 slangAssert((type > DataTypeUnknown && type < DataTypeMax) &&
1224 slangAssert(false && "Unknown data type");
1311 slangAssert(false && "Max vector is 4");
1321 slangAssert(EV
[all...]
H A Dslang_rs_export_var.cpp93 slangAssert(false && "Unknown class of type");
H A Dslang_rs_reflect_utils.cpp221 slangAssert(false && "Couldn't generate 32-bit embedded bitcode!");
225 slangAssert(false && "Couldn't generate 64-bit embedded bitcode!");
245 slangAssert(false &&
395 slangAssert(!mIndent.empty() && "No indent");
H A Dslang_rs_export_reduce.cpp60 slangAssert(Context);
76 slangAssert(!"Unknown FnIdent");
167 slangAssert(TUDecl);
222 slangAssert(Fn);
237 slangAssert(ParamQType->isPointerType());
295 slangAssert(S.FnAccumulator);
386 slangAssert(S.FnAccumulatorIndexOfFirstSpecialParameter < S.FnAccumulator->getNumParams());
458 slangAssert(!S.Ok);
582 slangAssert(!S.Ok);
645 slangAssert(!
[all...]
H A Drs_cc_options.cpp165 default: { slangAssert(false && "Invalid option in M group!"); }
187 default: { slangAssert(false && "Invalid option in output type group!"); }
269 slangAssert(OptParser->getOptionKind(Opt) == llvm::opt::Option::FlagClass);
H A Dslang_rs_reflection.h160 slangAssert((mFieldIndexMap.find(F) == mFieldIndexMap.end()) &&
167 slangAssert((I != mFieldIndexMap.end()) &&
H A Dslang.cpp132 slangAssert((OutputFile != nullptr) &&
289 slangAssert(0 && "Not implemented");
557 slangAssert(false && "Type shouldn't be in map yet!");
626 slangAssert(false && "Should have equal number of 32/64-bit files");
H A Dslang_rs_ast_replace.cpp147 slangAssert(false && "Both case and default have specialized handlers");

Completed in 1418 milliseconds

12