llvm-6502/test
Filipe Cabecinhas 70a2c7260a Extract the load/store type verification to a separate function.
Summary:
Added isLoadableOrStorableType to PointerType.

We were doing some checks in some places, occasionally assert()ing instead
of telling the caller. With this patch, I'm putting all type checking in
the same place for load/store type instructions, and verifying the same
thing every time.

I also added a check for load/store of a function type.

Applied extracted check to Load, Store, and Cmpxcg.

I don't have exhaustive tests for all of these, but all Error() calls in
TypeCheckLoadStoreInst are being tested (in invalid.test).

Reviewers: dblaikie, rafael

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9785

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237619 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-18 21:48:55 +00:00
..
Analysis [LoopAccesses] If shouldRetryWithRuntimeCheck, reset InterestingDependences 2015-05-18 15:37:03 +00:00
Assembler
Bindings
Bitcode Extract the load/store type verification to a separate function. 2015-05-18 21:48:55 +00:00
BugPoint
CodeGen ARM: allow jump tables to be placed as constant islands. 2015-05-18 17:10:40 +00:00
DebugInfo
ExecutionEngine
Feature
FileCheck
Instrumentation Fix the check strings in a test case committed in r212455. 2015-05-15 00:12:26 +00:00
Integer
JitListener
Linker
LTO
MC Sparc: support the "set" synthetic instruction. 2015-05-18 16:43:33 +00:00
Object [llvm-readobj] Teach llvm-readobj to print PT_MIPS_ABIFLAGS program header 2015-05-15 15:59:22 +00:00
Other
SymbolRewriter
TableGen
tools [llvm-readobj] Teach llvm-readobj to print PT_MIPS_ABIFLAGS program header 2015-05-15 15:59:22 +00:00
Transforms [PlaceSafepoints] Assertion on that gc_result can not have preceding phis should only apply to invoke statepoint 2015-05-18 19:02:25 +00:00
Unit
Verifier [Verifier] Assert gc_relocate always return a pointer type 2015-05-18 19:50:14 +00:00
YAMLParser YAML: Implement block scalar parsing. 2015-05-13 23:10:51 +00:00
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh