summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-12-07 00:06:34 +0530
committerMatt Arsenault <arsenm2@gmail.com>2020-01-06 17:21:51 -0500
commit5518a02a83e855edeff7d8b4db685ec5d1b4144e (patch)
tree92717a07fa9846dd3e5626006766810ededc0000 /lldb/packages/Python/lldbsuite/test/python_api/process
parent6a0564adcfe65956cb1099e8ec6c4801655007c4 (diff)
downloadbcm5719-llvm-5518a02a83e855edeff7d8b4db685ec5d1b4144e.tar.gz
bcm5719-llvm-5518a02a83e855edeff7d8b4db685ec5d1b4144e.zip
llc/MIR: Fix setFunctionAttributes for MIR functions
A random set of attributes are implemented by llc/opt forcing the string attributes on the IR functions before processing anything. This would not happen for MIR functions, which have not yet been created at this point. Use a callback in the MIR parser, purely to avoid dealing with the ugliness that the command line flags are in a .inc file, and would require allowing access to these flags from multiple places (either from the MIR parser directly, or a new utility pass to implement these flags). It would probably be better to cleanup the flag handling into a separate library. This is in preparation for treating more command line flags with a corresponding function attribute in a more uniform way. The fast math flags in particular have a messy system where the command line flag sets the behavior from a function attribute if present, and otherwise the command line flag. This means if any other pass tries to inspect the function attributes directly, it will be inconsistent with the intended behavior. This is also inconsistent with the current behavior of -mcpu and -mattr, which overwrites any pre-existing function attributes. I would like to move this to consistenly have the command line flags not overwrite any pre-existing attributes, and to always ensure the command line flags are consistent with the function attributes.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud