@@ -289,35 +289,36 @@ void TypeInDeclRule::registerMatcher(MatchFinder &MF) {
289
289
" thrust::host_vector" , " cublasHandle_t" , " CUevent_st" , " __half" ,
290
290
" half" , " __half2" , " half2" , " cudaMemoryAdvise" , " cudaError_enum" ,
291
291
" cudaDeviceProp" , " cudaStreamCaptureStatus" ,
292
- " cudaGraphExecUpdateResult" , " cudaPitchedPtr" ,
293
- " thrust::counting_iterator" , " thrust::transform_iterator" ,
294
- " thrust::permutation_iterator" , " thrust::iterator_difference" ,
295
- " cusolverDnHandle_t" , " cusolverDnParams_t" , " gesvdjInfo_t" ,
296
- " syevjInfo_t" , " thrust::device_malloc_allocator" ,
297
- " thrust::divides" , " thrust::tuple" , " thrust::maximum" ,
298
- " thrust::multiplies" , " thrust::plus" , " cudaDataType_t" ,
299
- " cudaError_t" , " CUresult" , " CUdevice" , " cudaEvent_t" ,
300
- " cublasStatus_t" , " cuComplex" , " cuFloatComplex" ,
301
- " cuDoubleComplex" , " CUevent" , " cublasFillMode_t" ,
302
- " cublasDiagType_t" , " cublasSideMode_t" , " cublasOperation_t" ,
303
- " cusolverStatus_t" , " cusolverEigType_t" , " cusolverEigMode_t" ,
304
- " curandStatus_t" , " cudaStream_t" , " cusparseStatus_t" ,
305
- " cusparseDiagType_t" , " cusparseFillMode_t" , " cusparseIndexBase_t" ,
306
- " cusparseMatrixType_t" , " cusparseAlgMode_t" ,
307
- " cusparseOperation_t" , " cusparseMatDescr_t" , " cusparseHandle_t" ,
308
- " CUcontext" , " cublasPointerMode_t" , " cusparsePointerMode_t" ,
309
- " cublasGemmAlgo_t" , " cusparseSolveAnalysisInfo_t" , " cudaDataType" ,
310
- " cublasDataType_t" , " curandState_t" , " curandState" ,
311
- " curandStateXORWOW_t" , " curandStateXORWOW" ,
312
- " curandStatePhilox4_32_10_t" , " curandStatePhilox4_32_10" ,
313
- " curandStateMRG32k3a_t" , " curandStateMRG32k3a" , " thrust::minus" ,
314
- " thrust::negate" , " thrust::logical_or" , " thrust::equal_to" ,
315
- " thrust::less" , " cudaSharedMemConfig" , " curandGenerator_t" ,
316
- " curandRngType_t" , " curandOrdering_t" , " cufftHandle" , " cufftReal" ,
317
- " cufftDoubleReal" , " cufftComplex" , " cufftDoubleComplex" ,
318
- " cufftResult_t" , " cufftResult" , " cufftType_t" , " cufftType" ,
319
- " thrust::pair" , " CUdeviceptr" , " cudaDeviceAttr" , " CUmodule" ,
320
- " CUjit_option" , " CUfunction" , " cudaMemcpyKind" , " cudaComputeMode" ,
292
+ " cudaGraphExecUpdateResult" , " cudaGraphExecUpdateResultInfo" ,
293
+ " cudaPitchedPtr" , " thrust::counting_iterator" ,
294
+ " thrust::transform_iterator" , " thrust::permutation_iterator" ,
295
+ " thrust::iterator_difference" , " cusolverDnHandle_t" ,
296
+ " cusolverDnParams_t" , " gesvdjInfo_t" , " syevjInfo_t" ,
297
+ " thrust::device_malloc_allocator" , " thrust::divides" ,
298
+ " thrust::tuple" , " thrust::maximum" , " thrust::multiplies" ,
299
+ " thrust::plus" , " cudaDataType_t" , " cudaError_t" , " CUresult" ,
300
+ " CUdevice" , " cudaEvent_t" , " cublasStatus_t" , " cuComplex" ,
301
+ " cuFloatComplex" , " cuDoubleComplex" , " CUevent" ,
302
+ " cublasFillMode_t" , " cublasDiagType_t" , " cublasSideMode_t" ,
303
+ " cublasOperation_t" , " cusolverStatus_t" , " cusolverEigType_t" ,
304
+ " cusolverEigMode_t" , " curandStatus_t" , " cudaStream_t" ,
305
+ " cusparseStatus_t" , " cusparseDiagType_t" , " cusparseFillMode_t" ,
306
+ " cusparseIndexBase_t" , " cusparseMatrixType_t" ,
307
+ " cusparseAlgMode_t" , " cusparseOperation_t" , " cusparseMatDescr_t" ,
308
+ " cusparseHandle_t" , " CUcontext" , " cublasPointerMode_t" ,
309
+ " cusparsePointerMode_t" , " cublasGemmAlgo_t" ,
310
+ " cusparseSolveAnalysisInfo_t" , " cudaDataType" , " cublasDataType_t" ,
311
+ " curandState_t" , " curandState" , " curandStateXORWOW_t" ,
312
+ " curandStateXORWOW" , " curandStatePhilox4_32_10_t" ,
313
+ " curandStatePhilox4_32_10" , " curandStateMRG32k3a_t" ,
314
+ " curandStateMRG32k3a" , " thrust::minus" , " thrust::negate" ,
315
+ " thrust::logical_or" , " thrust::equal_to" , " thrust::less" ,
316
+ " cudaSharedMemConfig" , " curandGenerator_t" , " curandRngType_t" ,
317
+ " curandOrdering_t" , " cufftHandle" , " cufftReal" , " cufftDoubleReal" ,
318
+ " cufftComplex" , " cufftDoubleComplex" , " cufftResult_t" ,
319
+ " cufftResult" , " cufftType_t" , " cufftType" , " thrust::pair" ,
320
+ " CUdeviceptr" , " cudaDeviceAttr" , " CUmodule" , " CUjit_option" ,
321
+ " CUfunction" , " cudaMemcpyKind" , " cudaComputeMode" ,
321
322
" __nv_bfloat16" , " cooperative_groups::__v1::thread_group" ,
322
323
" cooperative_groups::__v1::thread_block" , " libraryPropertyType_t" ,
323
324
" libraryPropertyType" , " cudaDataType_t" , " cudaDataType" ,
@@ -930,12 +931,6 @@ void TypeInDeclRule::runRule(const MatchFinder::MatchResult &Result) {
930
931
}
931
932
}
932
933
933
- if (CanonicalTypeStr == " cudaGraphExecUpdateResult" ) {
934
- report (TL->getBeginLoc (), Diagnostics::API_NOT_MIGRATED, false ,
935
- CanonicalTypeStr);
936
- return ;
937
- }
938
-
939
934
if (CanonicalTypeStr == " cudaGraphicsRegisterFlags" ||
940
935
CanonicalTypeStr == " cudaGraphicsMapFlags" ) {
941
936
if (!DpctGlobalInfo::useExtBindlessImages ()) {
@@ -4577,6 +4572,9 @@ void KernelCallRefRule::insertWrapperPostfix(const T *Node,
4577
4572
bool isInsertWrapperRegister) {
4578
4573
auto NLoc = DpctGlobalInfo::getSourceManager ().getSpellingLoc (
4579
4574
Node->getNameInfo ().getBeginLoc ());
4575
+
4576
+ std::cout <<" WRAPPER APPENDED: " << " \n " ;
4577
+
4580
4578
emplaceTransformation (new InsertText (
4581
4579
NLoc.getLocWithOffset (Node->getNameInfo ().getAsString ().length ()),
4582
4580
" _wrapper" ));
@@ -7182,11 +7180,14 @@ ReplaceMemberAssignAsSetMethod(const Expr *E, const MemberExpr *ME,
7182
7180
StringRef ExtraArg, StringRef ExtraFeild) {
7183
7181
if (ReplacedArg.empty ()) {
7184
7182
if (auto RHS = getRhs (E)) {
7183
+ StringRef c = ExprAnalysis::ref (RHS);
7184
+ std::cout <<" Replaced String: " << c.str () <<" \n " ;
7185
7185
return ReplaceMemberAssignAsSetMethod (
7186
7186
getStmtExpansionSourceRange (E).getEnd (), ME, MethodName,
7187
7187
ExprAnalysis::ref (RHS), ExtraArg, ExtraFeild);
7188
7188
}
7189
7189
}
7190
+ std::cout << " Coming her!!!!!!!!!e\n " ;
7190
7191
return ReplaceMemberAssignAsSetMethod (getStmtExpansionSourceRange (E).getEnd (),
7191
7192
ME, MethodName, ReplacedArg, ExtraArg);
7192
7193
}
0 commit comments