Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1518)

Side by Side Diff: lib/Transforms/NaCl/NoExitRuntime.cpp

Issue 1151093004: Changes from 3.7 merge to files not in upstream (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- NoExitRuntime.cpp - Expand i64 and wider integer types -------------===// 1 //===- NoExitRuntime.cpp - Expand i64 and wider integer types -------------===//
jvoung (off chromium) 2015/05/26 20:39:45 comment seems to be copy-pasted, but I guess that'
Derek Schuff 2015/05/26 22:01:32 It is from emscripten, we should fix upstream
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===------------------------------------------------------------------===// 8 //===------------------------------------------------------------------===//
9 // 9 //
10 //===------------------------------------------------------------------===// 10 //===------------------------------------------------------------------===//
11 11
12 #include "llvm/ADT/PostOrderIterator.h" 12 #include "llvm/ADT/PostOrderIterator.h"
13 #include "llvm/ADT/SmallVector.h" 13 #include "llvm/ADT/SmallVector.h"
14 #include "llvm/ADT/SmallString.h" 14 #include "llvm/ADT/SmallString.h"
15 #include "llvm/ADT/StringExtras.h" 15 #include "llvm/ADT/StringExtras.h"
16 #include "llvm/Analysis/ConstantFolding.h" 16 #include "llvm/Analysis/ConstantFolding.h"
17 #include "llvm/Analysis/InstructionSimplify.h" 17 #include "llvm/Analysis/InstructionSimplify.h"
18 #include "llvm/IR/DataLayout.h" 18 #include "llvm/IR/DataLayout.h"
19 #include "llvm/IR/Function.h" 19 #include "llvm/IR/Function.h"
20 #include "llvm/IR/IRBuilder.h" 20 #include "llvm/IR/IRBuilder.h"
21 #include "llvm/IR/Instructions.h" 21 #include "llvm/IR/Instructions.h"
22 #include "llvm/IR/IntrinsicInst.h" 22 #include "llvm/IR/IntrinsicInst.h"
23 #include "llvm/IR/Module.h" 23 #include "llvm/IR/Module.h"
24 #include "llvm/Pass.h" 24 #include "llvm/Pass.h"
25 #include "llvm/IR/CFG.h" 25 #include "llvm/IR/CFG.h"
26 #include "llvm/Target/TargetLibraryInfo.h" 26 #include "llvm/Analysis/TargetLibraryInfo.h"
27 #include "llvm/Transforms/NaCl.h" 27 #include "llvm/Transforms/NaCl.h"
28 #include "llvm/Transforms/Utils/Local.h" 28 #include "llvm/Transforms/Utils/Local.h"
29 #include <map> 29 #include <map>
30 30
31 #include "llvm/Support/raw_ostream.h" 31 #include "llvm/Support/raw_ostream.h"
32 32
33 #ifdef NDEBUG 33 #ifdef NDEBUG
34 #undef assert 34 #undef assert
35 #define assert(x) { if (!(x)) report_fatal_error(#x); } 35 #define assert(x) { if (!(x)) report_fatal_error(#x); }
36 #endif 36 #endif
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 for (unsigned i = 0; i < ToErase.size(); i++) { 87 for (unsigned i = 0; i < ToErase.size(); i++) {
88 ToErase[i]->eraseFromParent(); 88 ToErase[i]->eraseFromParent();
89 } 89 }
90 90
91 return true; 91 return true;
92 } 92 }
93 93
94 ModulePass *llvm::createNoExitRuntimePass() { 94 ModulePass *llvm::createNoExitRuntimePass() {
95 return new NoExitRuntime(); 95 return new NoExitRuntime();
96 } 96 }
97
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698