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

View File

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