@@ -479,6 +479,7 @@ void DistributedAccessor::decodeArgument(unsigned argumentIdx,
479
479
}
480
480
481
481
case ParameterConvention::Indirect_In_Guaranteed: {
482
+ fprintf (stderr, " [%s:%d](%s) Indirect_In_Guaranteed\n " , __FILE_NAME__, __LINE__, __FUNCTION__);
482
483
// The argument is +0, so we can use the address of the param in
483
484
// the context directly.
484
485
arguments.add (resultAddr);
@@ -494,8 +495,12 @@ void DistributedAccessor::decodeArgument(unsigned argumentIdx,
494
495
case ParameterConvention::Pack_Inout:
495
496
llvm_unreachable (" pack parameters are not supported" );
496
497
497
- case ParameterConvention::Direct_Guaranteed:
498
+ case ParameterConvention::Direct_Guaranteed: {
499
+ fprintf (stderr, " [%s:%d](%s) Direct_Guaranteed\n " , __FILE_NAME__, __LINE__, __FUNCTION__);
500
+ LLVM_FALLTHROUGH;
501
+ }
498
502
case ParameterConvention::Direct_Unowned: {
503
+ fprintf (stderr, " [%s:%d](%s) UNOWNED\n " , __FILE_NAME__, __LINE__, __FUNCTION__);
499
504
auto paramTy = param.getSILStorageInterfaceType ();
500
505
Address eltPtr = IGF.Builder .CreateElementBitCast (
501
506
resultValue.getAddress (), IGM.getStorageType (paramTy));
@@ -506,6 +511,7 @@ void DistributedAccessor::decodeArgument(unsigned argumentIdx,
506
511
}
507
512
508
513
case ParameterConvention::Direct_Owned: {
514
+ fprintf (stderr, " [%s:%d](%s) DIRECT OWNED\n " , __FILE_NAME__, __LINE__, __FUNCTION__);
509
515
// Copy the value out at +1.
510
516
cast<LoadableTypeInfo>(paramInfo).loadAsCopy (IGF, resultValue.getAddress (),
511
517
arguments);
@@ -593,6 +599,7 @@ void DistributedAccessor::emitReturn(llvm::Value *errorValue) {
593
599
// Destroy loaded arguments.
594
600
for (auto argInfo = LoadedArguments.rbegin ();
595
601
argInfo != LoadedArguments.rend (); ++argInfo) {
602
+
596
603
emitDestroyCall (IGF, argInfo->second , argInfo->first );
597
604
}
598
605
0 commit comments