llvm-6502/lib
Duncan P. N. Exon Smith 78c0b35bf7 IR: Rewrite ConstantUniqueMap
Rewrite `ConstantUniqueMap` to be more similar to
`ConstantAggrUniqueMap`.

  - Use a `DenseMap` with custom MapInfo instead of a `std::map` with
    linear lookups and deletion.
  - Don't waste memory explicitly storing (heavyweight) keys.

Only `ConstantExpr` and `InlineAsm` actually use this data structure, so
I also updated them to use it.

This code cleanup is a precursor to reducing RAUW traffic on
`ConstantExpr` -- I felt badly adding a new (linear) call to
`ConstantUniqueMap::FindExistingKey`, so this designs away the concern.

A follow-up commit will transition the users of `ConstantAggrUniqueMap`
over.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215957 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-19 00:42:32 +00:00
..
Analysis Answer to Philip Reames comments 2014-08-18 22:18:14 +00:00
AsmParser LLParser: Handle BlockAddresses on-the-fly 2014-08-19 00:13:19 +00:00
Bitcode BitcodeReader: Only create one basic block for each blockaddress 2014-08-16 01:54:37 +00:00
CodeGen Teach the AArch64 backend to handle f16 2014-08-18 14:22:39 +00:00
DebugInfo
ExecutionEngine Use a range loop. NFC. 2014-08-18 23:15:59 +00:00
IR IR: Rewrite ConstantUniqueMap 2014-08-19 00:42:32 +00:00
IRReader Pass a std::uinque_ptr to ParseAssembly to make the ownership explicit. NFC. 2014-08-17 21:36:47 +00:00
LineEditor
Linker
LTO Revert "Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size." 2014-08-18 00:24:38 +00:00
MC TableGen: allow use of uint64_t for available features mask. 2014-08-18 11:49:42 +00:00
Object Make llvm-objdump handle both arm and thumb disassembly from the same Mach-O 2014-08-18 20:21:02 +00:00
Option
ProfileData
Support Convert an ownership comment with std::uinque_ptr. 2014-08-17 22:20:33 +00:00
TableGen
Target NVPTX: Use RAUW instead of reinventing the wheel 2014-08-19 00:20:02 +00:00
Transforms Revert "Repace SmallPtrSet with SmallPtrSetImpl in function arguments to avoid needing to mention the size." 2014-08-18 00:24:38 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile