MAINT: Use syrk as an exception

This commit is contained in:
Rohit Goswami 2024-05-19 00:02:58 +00:00 committed by Mateusz Sokół
parent 2f17fd08b7
commit 26b98f6a10
2 changed files with 5 additions and 8 deletions

View File

@ -128,7 +128,7 @@ driver_kops = [
},
{ 'base': '?syrk',
'sources': {
'symm_k.c': {'mode': ['s', 'd', # 'q'],
'syrk_k.c': {'mode': ['s', 'd', # 'q'],
'c', 'z'], # 'x'],
'exts': ['_UN', '_UT',
'_LN', '_LT']},
@ -188,7 +188,7 @@ foreach _kop : driver_kops
_ext_cargs = []
# Check ext_mappings first
if ext_mappings.has_key(ext)
if ext_mappings.has_key(ext) and (not ext_mappings.has_key('except') or base not in ext_mappings['except'])
extmap = ext_mappings[ext]
if extmap.has_key('def')
foreach _d : extmap['def']

View File

@ -272,7 +272,7 @@ ext_mappings = {
# '_V': {'def': ['XCONJ'], 'undef': ['CONJ']},
'_D': {'def': ['CONJ', 'XCONJ']},
'_L': {'def': ['LOWER']},
'_LN': {'def': ['LEFT'], 'undef': ['TRANSA']},
'_LN': {'def': ['LEFT'], 'undef': ['TRANSA'], 'except': ['?syrk']},
# Handle HEMV and HEMVREV better
'_V': {'def': ['HEMV', 'HEMVREV', 'XCONJ'], 'undef': ['LOWER', 'CONJ']},
'_M': {'def': ['HEMV', 'HEMVREV', 'LOWER']},
@ -305,11 +305,8 @@ ext_mappings = {
'_LL': {'def': ['LOWER', 'NN'], 'undef': ['RSIDE']},
'_RU': {'def': ['RSIDE', 'NN'], 'undef': ['LOWER']},
'_RL': {'def': ['RSIDE', 'NN', 'LOWER']},
'_UN': {'undef': ['TRANS', 'LOWER']},
'_UT': {'def': ['TRANS'], 'undef': ['LOWER']},
# TODO(rg): Need to handle the key conflict here for syrk
'_LN': {'def': ['LOWER'], 'undef': ['TRANS']},
'_LT': {'def': ['TRANS', 'LOWER']},
'_UN': {'undef': ['TRANS', 'LOWER'], 'except': ['?syrk']},
'_UT': {'def': ['TRANS'], 'undef': ['LOWER'], 'except': ['?syrk']},
}
ext_mappings_l2 = [