[llvm] 59982a6 - [UpdateTestChecks] Add support for '.' in ir function names

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 10:58:56 PST 2020


Author: Simon Pilgrim
Date: 2020-02-19T18:58:44Z
New Revision: 59982a6d8f9d0ba34a47798fe155121767e66411

URL: https://github.com/llvm/llvm-project/commit/59982a6d8f9d0ba34a47798fe155121767e66411
DIFF: https://github.com/llvm/llvm-project/commit/59982a6d8f9d0ba34a47798fe155121767e66411.diff

LOG: [UpdateTestChecks] Add support for '.' in ir function names

Will let us regenerate from amdgpu float constant tests

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/common.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index f3a87a07037c..9dc42d46dc9f 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -76,7 +76,7 @@ def invoke_tool(exe, cmd_args, ir):
     r'\s*\n(?P<body>.*)$',
     flags=(re.X | re.S))
 
-IR_FUNCTION_RE = re.compile(r'^\s*define\s+(?:internal\s+)?[^@]*@(\w+)\s*\(')
+IR_FUNCTION_RE = re.compile(r'^\s*define\s+(?:internal\s+)?[^@]*@([\w.]+)\s*\(')
 TRIPLE_IR_RE = re.compile(r'^\s*target\s+triple\s*=\s*"([^"]+)"$')
 TRIPLE_ARG_RE = re.compile(r'-mtriple[= ]([^ ]+)')
 MARCH_ARG_RE = re.compile(r'-march[= ]([^ ]+)')


        


More information about the llvm-commits mailing list