1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/unittests/ExecutionEngine/Orc
Reid Kleckner 822117c56d [IR] Abstract away ArgNo+1 attribute indexing as much as possible
Summary:
Do three things to help with that:
- Add AttributeList::FirstArgIndex, which is an enumerator currently set
  to 1. It allows us to change the indexing scheme with fewer changes.
- Add addParamAttr/removeParamAttr. This just shortens addAttribute call
  sites that would otherwise need to spell out FirstArgIndex.
- Remove some attribute-specific getters and setters from Function that
  take attribute list indices.  Most of these were only used from
  BuildLibCalls, and doesNotAlias was only used to test or set if the
  return value is malloc-like.

I'm happy to split the patch, but I think they are probably easier to
review when taken together.

This patch should be NFC, but it sets the stage to change the indexing
scheme to this, which is more convenient when indexing into an array:
  0: func attrs
  1: retattrs
  2...: arg attrs

Reviewers: chandlerc, pete, javed.absar

Subscribers: david2050, llvm-commits

Differential Revision: https://reviews.llvm.org/D32811

llvm-svn: 302060
2017-05-03 18:17:31 +00:00
..
CMakeLists.txt [Orc] Break QueueChannel out into its own header and add a utility, 2017-04-06 01:49:21 +00:00
CompileOnDemandLayerTest.cpp [ExecutionEngine][MCJIT][Orc] Replace RuntimeDyld::SymbolInfo with JITSymbol. 2016-08-01 20:49:11 +00:00
GlobalMappingLayerTest.cpp [ExecutionEngine][MCJIT][Orc] Replace RuntimeDyld::SymbolInfo with JITSymbol. 2016-08-01 20:49:11 +00:00
IndirectionUtilsTest.cpp [IR] Abstract away ArgNo+1 attribute indexing as much as possible 2017-05-03 18:17:31 +00:00
LazyEmittingLayerTest.cpp [ExecutionEngine][MCJIT][Orc] Replace RuntimeDyld::SymbolInfo with JITSymbol. 2016-08-01 20:49:11 +00:00
ObjectTransformLayerTest.cpp [Orc] Rename ObjectLinkingLayer -> RTDyldObjectLinkingLayer. 2017-02-20 05:45:14 +00:00
OrcCAPITest.cpp Remove every uses of getGlobalContext() in LLVM (but the C API) 2016-04-14 21:59:01 +00:00
OrcTestCommon.cpp [RuntimeDyld] Make RuntimeDyld honor the ProcessAllSections flag. 2017-04-04 17:03:49 +00:00
OrcTestCommon.h [RuntimeDyld] Remove an unused static member left over from r299449. 2017-04-05 01:43:59 +00:00
QueueChannel.cpp [Orc] Break QueueChannel out into its own header and add a utility, 2017-04-06 01:49:21 +00:00
QueueChannel.h [Orc] Add missing header include for r299611. 2017-04-06 04:12:47 +00:00
RPCUtilsTest.cpp [ORC] Re-enable the Error/Expected unit tests that were disabled in r300177. 2017-04-14 00:06:12 +00:00
RTDyldObjectLinkingLayerTest.cpp [RuntimeDyld] Make RuntimeDyld honor the ProcessAllSections flag. 2017-04-04 17:03:49 +00:00