Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/AArch64/Atomics/generate-tests.py
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | |||||
class Feature(enum.Flag): | class Feature(enum.Flag): | ||||
# Feature names in filenames are determined by the spelling here: | # Feature names in filenames are determined by the spelling here: | ||||
v8a = enum.auto() | v8a = enum.auto() | ||||
v8_1a = enum.auto() # -mattr=+v8.1a, mandatory FEAT_LOR, FEAT_LSE | v8_1a = enum.auto() # -mattr=+v8.1a, mandatory FEAT_LOR, FEAT_LSE | ||||
rcpc = enum.auto() # FEAT_LRCPC | rcpc = enum.auto() # FEAT_LRCPC | ||||
lse2 = enum.auto() # FEAT_LSE2 | lse2 = enum.auto() # FEAT_LSE2 | ||||
outline_atomics = enum.auto() # -moutline-atomics | outline_atomics = enum.auto() # -moutline-atomics | ||||
rcpc3 = enum.auto() # FEAT_LSE2 + FEAT_LRCPC3 | rcpc3 = enum.auto() # FEAT_LSE2 + FEAT_LRCPC3 | ||||
lse128 = enum.auto() # FEAT_LSE128 | |||||
lse2_lse128 = enum.auto() # FEAT_LSE2 + FEAT_LSE128 | lse2_lse128 = enum.auto() # FEAT_LSE2 + FEAT_LSE128 | ||||
@property | @property | ||||
def mattr(self): | def mattr(self): | ||||
if self == Feature.outline_atomics: | if self == Feature.outline_atomics: | ||||
return '+outline-atomics' | return '+outline-atomics' | ||||
if self == Feature.v8_1a: | if self == Feature.v8_1a: | ||||
return '+v8.1a' | return '+v8.1a' | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |