forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak the Dyno builtins to match those in production (chapel-lang#23641)
Dyno is missing just a handful of builtins from production; this PR adds them back in. The only things that were missing that seemed to be necessary to add back in eagerly (as opposed to waiting for it to come up as part of compiler implementation) were those missing from the (collapsed) list at the bottom of the issue, except `splitInitType`, which seems like an implementation detail. They are the following: * `dtObject` -- dyno had `object`, which I changed to `RootClass` to match the semi-recent rename. * `dtTaskID` -- dyno had a type, but the name of the type was actually the runtime value. I changed the name. * `dtSingleAuxFields` -- added to match `dtSyncAuxFields`. Overall, very few things were needed for compatibility. Reviewed by @benharsh -- thanks! ## Testing - [x] paratest ## Details <details> <summary>List prior to this PR</summary> - [x] dtVoid = createInternalType("void", "void"); - [x] dtNothing = createInternalType ("nothing", "nothing"); - [x] dtInt[INT_SIZE_64] = createPrimitiveType("int", "int64_t"); - [x] dtReal[FLOAT_SIZE_64] = createPrimitiveType("real", "_real64"); - [x] dtStringC = createPrimitiveType("chpl_c_string", "c_string_rehook"); - [ ] dtObject = new AggregateType(AGGREGATE_CLASS); - [x] dtBytes = new AggregateType(AGGREGATE_RECORD); - [x] dtString = new AggregateType(AGGREGATE_RECORD); - [x] dtLocale = new AggregateType(AGGREGATE_RECORD); - [x] dtRange = new AggregateType(AGGREGATE_RECORD); - [x] dtOwned = new AggregateType(AGGREGATE_RECORD); - [x] dtShared = new AggregateType(AGGREGATE_RECORD); - [x] dtBool = createPrimitiveType("bool", "chpl_bool"); - [x] gFalse = createSymbol(dtBool, "false"); - [x] gTrue = createSymbol(dtBool, "true"); - [x] dtNil = createInternalType ("_nilType", "_nilType"); - [ ] dtSplitInitType = createInternalType("_splitInitType", "_splitInitType"); - [x] dtUnknown = createInternalType ("_unknown", "_unknown"); - [x] dtAnyRecord = createInternalType("record", "_anyRecord"); - [x] INIT_PRIM_IMAG( "imag", 64); // default size - [x] INIT_PRIM_COMPLEX( "complex", 128); // default size - [x] dtCVoidPtr = createPrimitiveType("chpl__c_void_ptr", "raw_c_void_ptr" ); - [x] dtCFnPtr = createPrimitiveType("chpl_c_fn_ptr", "c_fn_ptr_rehook"); - [x] dtOpaque = createPrimitiveType("opaque", "chpl_opaque"); - [ ] dtTaskID = createPrimitiveType("chpl_taskID_t", "chpl_taskID_t"); - [x] dtSyncVarAuxFields = createPrimitiveType( "_sync_aux_t", "chpl_sync_aux_t"); - [ ] dtSingleVarAuxFields = createPrimitiveType( "_single_aux_t", "chpl_single_aux_t"); - [x] dtAny = createInternalType ("_any", "_any"); - [x] dtAnyComplex = createInternalType("chpl_anycomplex", "complex"); - [x] dtAnyEnumerated = createInternalType ("enum", "enum"); - [x] dtAnyImag = createInternalType("chpl_anyimag", "imag"); - [x] dtAnyReal = createInternalType("chpl_anyreal", "real"); - [x] dtAnyPOD = createInternalType ("chpl_anyPOD", "POD"); - [x] dtIntegral = createInternalType ("integral", "integral"); - [x] dtNumeric = createInternalType ("numeric", "numeric"); - [x] dtIteratorRecord = createInternalType("_iteratorRecord", "_iteratorRecord"); - [x] dtIteratorClass = createInternalType("_iteratorClass", "_iteratorClass"); - [x] dtBorrowed = createInternalType("borrowed", "borrowed"); - [x] dtBorrowedNonNilable = createInternalType("_borrowedNonNilable", "_borrowedNonNilable"); - [x] dtBorrowedNilable = createInternalType("_borrowedNilable", "_borrowedNilable"); - [x] dtUnmanaged = createInternalType("unmanaged", "unmanaged"); - [x] dtUnmanagedNonNilable = createInternalType("_unmanagedNonNilable", "_unmanagedNonNilable"); - [x] dtUnmanagedNilable = createInternalType("_unmanagedNilable", "_unmanagedNilable"); - [x] dtAnyManagementAnyNilable = createInternalType("_anyManagementAnyNilable", "_anyManagementAnyNilable"); - [x] dtAnyManagementNonNilable = createInternalType("class", "_anyManagementNonNilable"); - [x] dtAnyManagementNilable = createInternalType("_anyManagementNilable", "_anyManagementNilable"); </details>
- Loading branch information
Showing
10 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters