Searched refs:slangAssert (Results 1 - 25 of 31) 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_reflection_state.cpp55 slangAssert(false && "unexpected APValue kind");
61 slangAssert(mState==S_Initial || mState==S_ClosedJava64 || mState==S_Bad);
68 slangAssert(mState==S_Initial);
77 slangAssert(mState==S_OpenJava32 && (mForEachOpen < 0) && !mOutputClassOpen && (mRecordsState != RS_Open));
85 slangAssert(mState==S_ClosedJava32);
93 slangAssert(mState==S_OpenJava64 && (mForEachOpen < 0) && !mOutputClassOpen && (mRecordsState != RS_Open));
99 slangAssert(isCollecting());
111 slangAssert(!isClosed());
117 slangAssert(mRecordsState != RS_Open);
127 slangAssert(fil
279 slangAssert(Ordinal < file.mForEachCount); function
[all...]
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_func.h73 slangAssert((mParamPacketType != nullptr) &&
78 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_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");
337 slangAssert(Q
[all...]
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_rs_reflection_state.h170 slangAssert(!mOutputClassOpen && !isClosed());
178 slangAssert(mOutputClassOpen);
186 slangAssert(mOutputClassOpen);
516 slangAssert(mState == S_Initial);
524 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize < mCapacity));
530 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize == mCapacity));
537 slangAssert((mState == S_Using) && (mCursor + 1 < mSize));
550 slangAssert(mCursor < mSize);
554 slangAssert(mCursor < mSize);
562 slangAssert(mCurso
[all...]
H A Dslang_rs_export_foreach.h111 slangAssert(!mDummyRoot);
167 slangAssert((mParamPacketType != nullptr) &&
173 slangAssert((mParamPacketType != nullptr) &&
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.h174 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT));
178 slangAssert(false && "incorrect type");
188 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT));
192 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"); }
329 slangAssert(ef->getIns().size() == 1);
355 slangAssert(ef->getIns().size() == 1);
375 slangAssert(ef->getIns().size() == 1);
546 default: { slangAssert(false && "Unknown class of type"); }
588 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
621 slangAssert(EVT != nullptr);
674 slangAssert(fals
[all...]
H A Dslang_rs_reflection.cpp132 slangAssert(false && "GetMatrixTypeName : Unsupported matrix dimension");
143 slangAssert((Index < (sizeof(VectorAccessorMap) / sizeof(const char *))) &&
187 slangAssert(false && "GetPackerAPIName : Unknown primitive data type");
242 default: { slangAssert(false && "Unknown class of type"); }
260 slangAssert(false && "Vectors should be size 2, 3, 4");
276 slangAssert(false && "Unsupported dimension of matrix");
303 slangAssert(FromTypeLoc != ValidTypes.end());
304 slangAssert(DestTypeLoc != ValidTypes.end());
306 slangAssert(FromTypeLoc - ValidTypes.begin() <= DestTypeLoc - ValidTypes.begin());
325 slangAssert(fals
[all...]
H A Dslang_rs_object_ref_count.cpp60 slangAssert((FD->getNumParams() == 2) &&
64 slangAssert((FD->getNumParams() == 1) &&
74 slangAssert(PVT->isPointerType() &&
80 slangAssert(RSExportPrimitiveType::IsRSObjectType(DT)
86 slangAssert(false && "incorrect type");
116 slangAssert(CompoundStmtCount == NewStmtCount);
130 slangAssert(CS);
159 slangAssert(Once <= 1);
163 slangAssert(Once == 0);
267 slangAssert(RefRSVa
[all...]
H A Dslang_rs_context.cpp81 slangAssert(!VD->getName().empty() && "Variable name should not be empty");
110 slangAssert(!FD->getName().empty() && "Function name should not be empty");
116 slangAssert(FD->getStorageClass() == clang::SC_None);
140 slangAssert((mTargetAPI < SLANG_FEATURE_SINGLE_SOURCE_API ||
177 slangAssert(TUDecl != nullptr && "Translation unit declaration (top-level "
286 slangAssert(numExportedForEach == 1);
H A Dslang_rs_export_type.cpp204 slangAssert(false && "Variables should be validated before exporting");
289 slangAssert(false && "Unknown type cannot be exported");
294 slangAssert(RD);
421 slangAssert(false && "Unknown type cannot be validated");
535 slangAssert(false && "Unknown type cannot be exported");
539 slangAssert(RD);
762 slangAssert(false && "Unknown data type of the builtin");
785 slangAssert(*RI != nullptr && "cannot be NULL object");
1033 slangAssert(T);
1036 slangAssert(
[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);
646 slangAssert(!
[all...]
H A Dslang.cpp136 slangAssert((OutputFile != nullptr) &&
285 slangAssert(0 && "Not implemented");
517 slangAssert(false && "Type shouldn't be in map yet!");
587 slangAssert(false && "Should have equal number of 32/64-bit files");
649 slangAssert(Opts.mBitWidth == 64);
768 slangAssert(Opts.mBitWidth == 64);
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);

Completed in 1650 milliseconds

12