llvm-6502/test
Duncan P. N. Exon Smith c4eafd24f2 Verifier: Check accessors of MDLocation
Check accessors of `MDLocation`, and change them to `cast<>` down to the
right types.  Also add type-safe factory functions.

All the callers that handle broken code need to use the new versions of
the accessors (`getRawScope()` instead of `getScope()`) that still
return `Metadata*`.  This is also necessary for things like
`MDNodeKeyImpl<MDLocation>` (in LLVMContextImpl.h) that need to unique
the nodes when their operands might still be forward references of the
wrong type.

In the `Value` hierarchy, consumers that handle broken code use
`getOperand()` directly.  However, debug info nodes have a ton of
operands, and their order (even their existence) isn't stable yet.  It's
safer and more maintainable to add an explicit "raw" accessor on the
class itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233322 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-26 22:05:04 +00:00
..
Analysis [SCEV] Revert bailout added in r75511. 2015-03-26 17:28:26 +00:00
Assembler Verifier: Check accessors of MDLocation 2015-03-26 22:05:04 +00:00
Bindings
Bitcode Add testing for mismatched explicit type on a gep operator when loading from bitcode 2015-03-16 22:03:50 +00:00
BugPoint bugpoint: Verify input files 2015-03-26 05:03:10 +00:00
CodeGen [ARM] Add v8.1a "Rounding Double Multiply Add/Subtract" extension 2015-03-26 18:29:02 +00:00
DebugInfo Simplify missing-file-line.ll test. 2015-03-25 17:58:09 +00:00
ExecutionEngine Make exit-code test use same mechanism as existing one. 2015-03-25 14:35:40 +00:00
Feature Rewrite test/Feature/md_on_instruction.ll 2015-03-20 18:34:53 +00:00
FileCheck
Instrumentation [sanitizer] experimental tracing for cmp instructions 2015-03-21 01:29:36 +00:00
Integer
JitListener
Linker Verifier: Check accessors of MDLocation 2015-03-26 22:05:04 +00:00
LTO libLTO, llvm-lto, gold: Introduce flag for controlling optimization level. 2015-03-19 22:01:00 +00:00
MC Fix PR23025. 2015-03-26 21:11:00 +00:00
Object
Other
SymbolRewriter
TableGen
tools llvm-cov: Require a subcommand when invoked as llvm-cov 2015-03-24 23:34:36 +00:00
Transforms InstCombine: fold (A << C) == (B << C) --> ((A^B) & (~0U >> C)) == 0 2015-03-26 17:12:06 +00:00
Unit
Verifier Verifier: Start recursing into !dbg attachments 2015-03-24 17:32:19 +00:00
YAMLParser
.clang-format
CMakeLists.txt test: Fix the dependencies for the check-llvm-* targets 2015-03-25 08:07:47 +00:00
lit.cfg Tell lit.cfg about more Windows triples. 2015-03-20 22:08:40 +00:00
lit.site.cfg.in test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
Makefile test: Make a start on a test suite for libLTO. 2015-03-19 23:55:38 +00:00
Makefile.tests
TestRunner.sh