aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMNaClRewritePass.cpp
AgeCommit message (Collapse)Author
2013-10-30Move global FlagSfi variables to common modulePetar Jovanovic
When built as nexe, llc is configured and built for one arch only. Variables FlagSfiData, FlagSfiLoad, FlagSfiStore, FlagSfiStack, and FlagSfiBranch have to availabe for MIPS as well, so this change moves them from ARM-only code to common code. BUG= building pnacl-llc.nexe for MIPS fails TEST= build sandboxed tools for MIPS R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/46193002
2013-08-19Remove FlagNaClUseM23ArmAbi since M23 was a long time ago.Jan Voung
It was used to support old r9/TLS model: https://codereview.chromium.org/11345042/ BUG=none (cleanup) R=jfb@chromium.org Review URL: https://codereview.chromium.org/23135011
2013-07-11Sandbox ARM load/store exclusive dualJF Bastien
PNaCl's LLVM sandboxing wasn't correct for ARM load/store exclusive dual. I encountered this while running our testsuite with my atomic changes: the tests which use volatile 64-bit values started failing validation. R=dschuff@chromium.org BUG= validation failure TEST= ./pnacl/test.sh test-arm Review URL: https://codereview.chromium.org/18978015
2013-02-04Merge remote-tracking branch 'origin/master'Derek Schuff
2013-02-04Make some LLVM localmods compile when building with --disable-assertions.Jan Voung
Also, wrap some more debug code under the DEBUG() macro so that it gets pruned with --disable-assertions. BUG=none Review URL: https://codereview.chromium.org/12162006
2013-01-30Merge commit 'a662a9862501fc86904e90054f7c1519101d9126'Derek Schuff
Conflicts: include/llvm/CodeGen/IntrinsicLowering.h include/llvm/MC/MCAssembler.h include/llvm/MC/MCObjectStreamer.h lib/LLVMBuild.txt lib/Linker/LinkArchives.cpp lib/MC/MCAssembler.cpp lib/MC/MCELFStreamer.cpp lib/MC/MCParser/AsmParser.cpp lib/MC/MCPureStreamer.cpp lib/MC/WinCOFFStreamer.cpp lib/Makefile lib/Support/Unix/Memory.inc lib/Support/Unix/Process.inc lib/Support/Unix/Program.inc lib/Target/ARM/ARM.h lib/Target/ARM/ARMFastISel.cpp lib/Target/ARM/ARMISelLowering.cpp lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp lib/Target/Mips/MipsInstrFPU.td lib/Target/X86/CMakeLists.txt lib/Target/X86/X86ISelLowering.cpp lib/Target/X86/X86TargetMachine.cpp lib/Target/X86/X86TargetObjectFile.cpp lib/Transforms/InstCombine/InstCombineCalls.cpp test/CodeGen/X86/fast-isel-x86-64.ll tools/llc/llc.cpp tools/lto/LTOModule.cpp utils/TableGen/EDEmitter.cpp
2013-01-04Move VLD cases properly into IsDangerousLoad and update tests that had ↵Eli Bendersky
incorrect -sfi-<xx> flags BUG=none Review URL: https://codereview.chromium.org/11759018
2012-11-29Disable register-register preloads for NaCl.JF Bastien
This disables, prefetches using the base reg + index reg ("[rb, ri]") style addressing mode. We do not allow this addressing mode for other memory instructions either and just to make sure we would also like to sandbox this instruction which is only possible for the base + immediate offset addressing mode. R=dschuff@chromium.org BUG=https://code.google.com/p/nativeclient/issues/detail?id=3117 TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-1.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-3.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-4.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-5.c TEST=nacl_compiler_test/gcc-4.6.1/gcc/testsuite/gcc.c-torture/execute/builtin-prefetch-6.c TEST=test/CodeGen/ARM/prefetch.ll Review URL: https://codereview.chromium.org/11416141
2012-11-29Removing unused code for computing CPSR liveness for sandboxing.Eli Bendersky
BUG= http://code.google.com/p/nativeclient/issues/detail?id=3160 Review URL: https://codereview.chromium.org/11421129
2012-11-15Fix AddrIndex for some instructions to be more precise, following Jan's commentsEli Bendersky
BUG=3124 Review URL: https://codereview.chromium.org/11412019
2012-11-15Sandboxing of VLD instructionsEli Bendersky
BUG=nativeclient:3124 Review URL: https://codereview.chromium.org/11413019
2012-11-14Implement sandboxing of NEON store instructionsEli Bendersky
BUG=http://code.google.com/p/nativeclient/issues/detail?id=3124 Review URL: https://codereview.chromium.org/11361249
2012-10-31llvm: build with fewer warningsJan Voung
Warnings: unused variables, unused functions, -Wreorder, and remember to return a value in a non-void function. Also remove setjmp/longjmp intrinsics for x86, which aren't being used now (no equivalents in ARM and no equivalent for x86-64 with the zero-based sandbox, etc.). This exposes a few more unused functions. BUG= none TEST= test-all Review URL: https://codereview.chromium.org/11345016
2012-10-30Add ARM M23 under an option.David Sehr
This will aid supporting M23 for our key applications. BUG=none TEST=none Review URL: https://codereview.chromium.org/11345042
2012-10-16Remove spurious definition from LOADSTORE_TSTDavid Sehr
BUG= http://code.google.com/p/nativeclient/issues/detail?id=3082 TEST=none Review URL: https://codereview.chromium.org/11091074
2012-10-11Fix ARM issues reported by --verify-machineinstrsDavid Sehr
BUG= http://code.google.com/p/nativeclient/issues/detail?id=3082 TEST=none Review URL: https://codereview.chromium.org/11085079
2012-10-10Revert "Enable predicated sandboxed load/store for ARM"David Sehr
This reverts commit 9ec5dc1630b9661633fd207534c8c1b52d8351d8.
2012-10-08Enable predicated sandboxed load/store for ARMDavid Sehr
2012-10-04ARM: Add ldr r9 mode for TLSDavid Sehr
BUG= http://code.google.com/p/nativeclient/issues/detail?id=2933 TEST=none Review URL: https://codereview.chromium.org/11066019
2012-07-03Diff from hg rev 0b098ca44de7Derek Schuff