llvm-6502/test
Duncan Sands 00edf4c1d8 Change the way the lint sanity checking pass detects misaligned memory accesses.
Previously it was only be able to detect problems if the pointer was a numerical
value (eg inttoptr i32 1 to i32*), but not if it was an alloca or globa.  The
reason was the use of ComputeMaskedBits: imagine you have "alloca i8, align 2",
and ask ComputeMaskedBits what it knows about the bits of the alloca pointer.
It can tell you that the bottom bit is known zero (due to align 2) but it can't
tell you that bit 1 is known one.  That's because the address could be an even
multiple of 2 rather than an odd multiple, eg it might be a multiple of 4.  Thus
trying to use KnownOne is ineffective in the case of an alloca as it will never
have any bits set.  Instead look explicitly for constant offsets from allocas
and globals.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164595 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-25 10:00:49 +00:00
..
Analysis
Archive
Assembler
Bindings/Ocaml
Bitcode BitcodeReader: Correctly insert blockaddress constant referring to a already parsed function. 2012-09-21 14:34:31 +00:00
BugPoint
CodeGen Fix an illegal tailcall opt where the callee returns a double via xmm while caller returns x86_fp80 via st0. rdar://12229511 2012-09-25 05:32:34 +00:00
DebugInfo Only emit DW_AT_object_pointer if this is a definition. 2012-09-20 22:51:57 +00:00
ExecutionEngine
Feature
Instrumentation
Integer
Linker
MC ARM: 'add Rd, pc, #imm' is an alias for 'adr Rd, #imm'. 2012-09-25 00:08:13 +00:00
Object Fix SymbolRef::getAddress implementation for ELF. The 'value' field in symbol table entry should be treated differently for relocatable and relocated files. This patch fixes symbol addresses printed by llvm-nm for executables and shared objects. 2012-09-21 07:08:08 +00:00
Other Change the way the lint sanity checking pass detects misaligned memory accesses. 2012-09-25 10:00:49 +00:00
Scripts
TableGen
Transforms Don't forget that strcpy and friends return a pointer to the destination, so 2012-09-25 01:55:59 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh