summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-09-01 19:42:45 +0000
committerErich Keane <erich.keane@intel.com>2017-09-01 19:42:45 +0000
commit371351289d7eef8673fd1c579689b6057738cc21 (patch)
tree9b38a81ece0286956ae300dcd1fb4b089dce0f9f /runtime
parentbc8355c7261e270551528eb90b1452fc58f31cde (diff)
[CodeGen]Refactor CpuSupports/CPUIs Builtin Code Gen to better work with
"target" implementation A small set of refactors that'll make it easier for me to implement 'target' support. First, extract the CPUSupports functionality into its own function. THis has the advantage of not wasting time in this builtin to deal with arguments. Second, pulls both CPUSupports and CPUIs implementation into a member-function, so that it can be called from the resolver generation that I'm working on. Third, creates an overload that takes simply the feature/cpu name (rather than extracting it from a callexpr), since that info isn't available later. Note that despite how the 'diff' looks, the EmitX86CPUSupports function simply takes the implementation out of the 'switch'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime')
0 files changed, 0 insertions, 0 deletions