diff options
author | Daniil Kovalev <daniil@kovalev.website> | 2022-04-15 18:11:24 +0300 |
---|---|---|
committer | Daniil Kovalev <daniil@kovalev.website> | 2022-04-15 18:11:24 +0300 |
commit | b1bb76a731d283368ae2b0a0913d76f18f107a6d (patch) | |
tree | f8f55d889a61c4136fe28d691acf0339e3364134 /llvm/utils/UpdateTestChecks/asm.py | |
parent | 04000c2f928a7adc32138a664d167f01b642bef3 (diff) | |
download | llvm-b1bb76a731d283368ae2b0a0913d76f18f107a6d.zip llvm-b1bb76a731d283368ae2b0a0913d76f18f107a6d.tar.gz llvm-b1bb76a731d283368ae2b0a0913d76f18f107a6d.tar.bz2 |
[NFC][UpdateTestChecks] Fix whitespace in common.py and asm.py
While working on D122986, noticed that indentation size varies even within
one file. Fixed that - now indentation is 2 spaces everywhere. This indentation
Differential Revision: https://reviews.llvm.org/D123859
Diffstat (limited to 'llvm/utils/UpdateTestChecks/asm.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/asm.py | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py index 01a25a6..5b6e7e2 100644 --- a/llvm/utils/UpdateTestChecks/asm.py +++ b/llvm/utils/UpdateTestChecks/asm.py @@ -23,11 +23,11 @@ ASM_FUNCTION_X86_RE = re.compile( flags=(re.M | re.S)) ASM_FUNCTION_ARM_RE = re.compile( - r'^(?P<func>[0-9a-zA-Z_]+):\n' # f: (name of function) - r'\s+\.fnstart\n' # .fnstart - r'(?P<body>.*?)\n' # (body of the function) - r'.Lfunc_end[0-9]+:', # .Lfunc_end0: or # -- End function - flags=(re.M | re.S)) + r'^(?P<func>[0-9a-zA-Z_]+):\n' # f: (name of function) + r'\s+\.fnstart\n' # .fnstart + r'(?P<body>.*?)\n' # (body of the function) + r'.Lfunc_end[0-9]+:', # .Lfunc_end0: or # -- End function + flags=(re.M | re.S)) ASM_FUNCTION_AARCH64_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*\/\/[ \t]*@"?(?P=func)"?( (Function|Tail Call))?\n' @@ -120,45 +120,45 @@ ASM_FUNCTION_SYSTEMZ_RE = re.compile( flags=(re.M | re.S)) ASM_FUNCTION_AARCH64_DARWIN_RE = re.compile( - r'^_(?P<func>[^:]+):[ \t]*;[ \t]@"?(?P=func)"?\n' - r'([ \t]*.cfi_startproc\n[\s]*)?' - r'(?P<body>.*?)' - r'([ \t]*.cfi_endproc\n[\s]*)?' - r'^[ \t]*;[ \t]--[ \t]End[ \t]function', - flags=(re.M | re.S)) + r'^_(?P<func>[^:]+):[ \t]*;[ \t]@"?(?P=func)"?\n' + r'([ \t]*.cfi_startproc\n[\s]*)?' + r'(?P<body>.*?)' + r'([ \t]*.cfi_endproc\n[\s]*)?' + r'^[ \t]*;[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S)) ASM_FUNCTION_ARM_DARWIN_RE = re.compile( - r'^[ \t]*\.globl[ \t]*_(?P<func>[^ \t])[ \t]*@[ \t]--[ \t]Begin[ \t]function[ \t]"?(?P=func)"?' - r'(?P<directives>.*?)' - r'^_(?P=func):\n[ \t]*' - r'(?P<body>.*?)' - r'^[ \t]*@[ \t]--[ \t]End[ \t]function', - flags=(re.M | re.S )) + r'^[ \t]*\.globl[ \t]*_(?P<func>[^ \t])[ \t]*@[ \t]--[ \t]Begin[ \t]function[ \t]"?(?P=func)"?' + r'(?P<directives>.*?)' + r'^_(?P=func):\n[ \t]*' + r'(?P<body>.*?)' + r'^[ \t]*@[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S )) ASM_FUNCTION_ARM_MACHO_RE = re.compile( - r'^_(?P<func>[^:]+):[ \t]*\n' - r'([ \t]*.cfi_startproc\n[ \t]*)?' - r'(?P<body>.*?)\n' - r'[ \t]*\.cfi_endproc\n', - flags=(re.M | re.S)) + r'^_(?P<func>[^:]+):[ \t]*\n' + r'([ \t]*.cfi_startproc\n[ \t]*)?' + r'(?P<body>.*?)\n' + r'[ \t]*\.cfi_endproc\n', + flags=(re.M | re.S)) ASM_FUNCTION_THUMBS_DARWIN_RE = re.compile( - r'^_(?P<func>[^:]+):\n' - r'(?P<body>.*?)\n' - r'[ \t]*\.data_region\n', - flags=(re.M | re.S)) + r'^_(?P<func>[^:]+):\n' + r'(?P<body>.*?)\n' + r'[ \t]*\.data_region\n', + flags=(re.M | re.S)) ASM_FUNCTION_THUMB_DARWIN_RE = re.compile( - r'^_(?P<func>[^:]+):\n' - r'(?P<body>.*?)\n' - r'^[ \t]*@[ \t]--[ \t]End[ \t]function', - flags=(re.M | re.S)) + r'^_(?P<func>[^:]+):\n' + r'(?P<body>.*?)\n' + r'^[ \t]*@[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S)) ASM_FUNCTION_ARM_IOS_RE = re.compile( - r'^_(?P<func>[^:]+):\n' - r'(?P<body>.*?)' - r'^[ \t]*@[ \t]--[ \t]End[ \t]function', - flags=(re.M | re.S)) + r'^_(?P<func>[^:]+):\n' + r'(?P<body>.*?)' + r'^[ \t]*@[ \t]--[ \t]End[ \t]function', + flags=(re.M | re.S)) ASM_FUNCTION_WASM32_RE = re.compile( r'^_?(?P<func>[^:]+):[ \t]*#+[ \t]*@"?(?P=func)"?\n' |