llvm.org GIT mirror llvm / efd4a51
Updated VC++ build system. Silenced some VC warnings. I'm getting linker errors, though: unresolved externals: llvm::Split<class llvm::BasicBlock *,struct llvm::GraphTraits<class llvm::BasicBlock *> >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *) and llvm::Split<struct llvm::Inverse<class llvm::BasicBlock *>,struct llvm::GraphTraits<struct llvm::Inverse<class llvm::BasicBlock *> > >(class llvm::DominatorTreeBase<class llvm::BasicBlock> &,class llvm::BasicBlock *) Where are these defined? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43073 91177308-0d34-0410-b5e6-96231b3b80d8 Hartmut Kaiser 11 years ago
13 changed file(s) with 42 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
2424 public:
2525 /// APSInt ctor - Create an APSInt with the specified width, default to
2626 /// unsigned.
27 explicit APSInt(unsigned BitWidth) : APInt(BitWidth, 0), IsUnsigned(true) {}
27 explicit APSInt(uint32_t BitWidth) : APInt(BitWidth, 0), IsUnsigned(true) {}
2828 APSInt(const APInt &I) : APInt(I), IsUnsigned(true) {}
2929
3030 APSInt &operator=(const APSInt &RHS) {
5656 }
5757
5858 operator bool() const {
59 return (*WordRef) & (1L << BitPos);
59 return ((*WordRef) & (1L << BitPos)) ? true : false;
6060 }
6161 };
6262
6363 //===----------------------------------------------------------------------===//
6464 // DomTreeNode - Dominator Tree Node
6565 template class DominatorTreeBase;
66 class PostDominatorTree;
66 struct PostDominatorTree;
6767 class MachineBasicBlock;
6868
6969 template
7474 int DFSNumIn, DFSNumOut;
7575
7676 template friend class DominatorTreeBase;
77 friend class PostDominatorTree;
77 friend struct PostDominatorTree;
7878 public:
7979 typedef typename std::vector *>::iterator iterator;
8080 typedef typename std::vector *>::const_iterator
262262 return T->getTypeID() == StructTyID;
263263 }
264264
265 bool isPacked() const { return getSubclassData(); }
265 bool isPacked() const { return (0 != getSubclassData()) ? true : false; }
266266 };
267267
268268
278278 PATypeHandle ContainedType; ///< Storage for the single contained type
279279 SequentialType(const SequentialType &); // Do not implement!
280280 const SequentialType &operator=(const SequentialType &); // Do not implement!
281
282 // avoiding warning: 'this' : used in base member initializer list
283 SequentialType* this_() { return this; }
281284 protected:
282285 SequentialType(TypeID TID, const Type *ElType)
283 : CompositeType(TID), ContainedType(ElType, this) {
286 : CompositeType(TID), ContainedType(ElType, this_()) {
284287 ContainedTys = &ContainedType;
285288 NumContainedTys = 1;
286289 }
8383
8484 class UnaryInstruction : public Instruction {
8585 Use Op;
86
87 // avoiding warning: 'this' : used in base member initializer list
88 UnaryInstruction* this_() { return this; }
8689 protected:
8790 UnaryInstruction(const Type *Ty, unsigned iType, Value *V, Instruction *IB =0)
88 : Instruction(Ty, iType, &Op, 1, IB), Op(V, this) {
91 : Instruction(Ty, iType, &Op, 1, IB), Op(V, this_()) {
8992 }
9093 UnaryInstruction(const Type *Ty, unsigned iType, Value *V, BasicBlock *IAE)
91 : Instruction(Ty, iType, &Op, 1, IAE), Op(V, this) {
94 : Instruction(Ty, iType, &Op, 1, IAE), Op(V, this_()) {
9295 }
9396 public:
9497 // Out of line virtual method, so the vtable, etc has a home.
255255 /// setVolatile - Specify whether this is a volatile load or not.
256256 ///
257257 void setVolatile(bool V) {
258 SubclassData = (SubclassData & ~1) | V;
258 SubclassData = (SubclassData & ~1) | (V ? 1 : 0);
259259 }
260260
261261 virtual LoadInst *clone() const;
323323 /// setVolatile - Specify whether this is a volatile load or not.
324324 ///
325325 void setVolatile(bool V) {
326 SubclassData = (SubclassData & ~1) | V;
326 SubclassData = (SubclassData & ~1) | (V ? 1 : 0);
327327 }
328328
329329 /// Transparently provide more efficient getOperand methods.
6666 private:
6767 Registry(); // Do not implement.
6868
69 static void Announce(node *);
69 static void Announce(const entry &E) {
70 for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next)
71 Cur->registered(E);
72 }
7073
7174 friend class node;
7275 static node *Head, *Tail;
228231 }
229232 };
230233
231
232 private:
233 static void Announce(const entry &E) {
234 for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next)
235 Cur->registered(E);
236 }
237
238234 };
239235
240236 }
2020
2121 class Function;
2222 class TargetData;
23 class BasicInlinerImpl;
23 struct BasicInlinerImpl;
2424
2525 /// BasicInliner - BasicInliner provides function level inlining interface.
2626 /// Clients provide list of functions which are inline without using
2323 %option noreject
2424 %option noyymore
2525
26 %x comment
26 %x in_comment
2727
2828 %{
2929 #include "llvm/Config/config.h"
225225 [ \t\n\r]+ { /* Ignore whitespace */ }
226226
227227
228 "/*" { BEGIN(comment); CommentDepth++; }
229 [^*/]* {} /* eat anything that's not a '*' or '/' */
230 "*"+[^*/]* {} /* eat up '*'s not followed by '/'s */
231 "/*" { ++CommentDepth; }
232 "/"+[^*/]* {} /* eat up /'s not followed by *'s */
233 "*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } }
234 <> { err() << "Unterminated comment!\n"; exit(1); }
228 "/*" { BEGIN(in_comment); CommentDepth++; }
229 [^*/]* {} /* eat anything that's not a '*' or '/' */
230 "*"+[^*/]* {} /* eat up '*'s not followed by '/'s */
231 "/*" { ++CommentDepth; }
232 "/"+[^*/]* {} /* eat up /'s not followed by *'s */
233 "*"+"/" { if (!--CommentDepth) { BEGIN(INITIAL); } }
234 <> { err() << "Unterminated comment!\n"; exit(1); }
235235
236236 . { return Filetext[0]; }
237237
4040 Name="VCCLCompilerTool"
4141 Optimization="0"
4242 AdditionalIncludeDirectories="..\..\include;.."
43 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;__STDC_LIMIT_MACROS"
43 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_LIB;__STDC_LIMIT_MACROS"
4444 StringPooling="true"
4545 MinimalRebuild="true"
4646 BasicRuntimeChecks="3"
110110
111111 Name="VCCLCompilerTool"
112112 AdditionalIncludeDirectories="..\..\include;.."
113 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;__STDC_LIMIT_MACROS"
113 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_LIB;__STDC_LIMIT_MACROS"
114114 StringPooling="true"
115115 RuntimeLibrary="2"
116116 ForceConformanceInForLoopScope="true"
4040 Name="VCCLCompilerTool"
4141 Optimization="0"
4242 AdditionalIncludeDirectories="..\..\include;.."
43 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;_DEBUG;_LIB;__STDC_LIMIT_MACROS"
43 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_WARNINGS;WIN32;_DEBUG;_LIB;__STDC_LIMIT_MACROS"
4444 StringPooling="true"
4545 MinimalRebuild="true"
4646 BasicRuntimeChecks="3"
110110
111111 Name="VCCLCompilerTool"
112112 AdditionalIncludeDirectories="..\..\include;.."
113 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;WIN32;NDEBUG;_LIB;__STDC_LIMIT_MACROS"
113 PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_WARNINGS;WIN32;NDEBUG;_LIB;__STDC_LIMIT_MACROS"
114114 StringPooling="true"
115115 RuntimeLibrary="2"
116116 ForceConformanceInForLoopScope="true"
404404 >
405405
406406
407 RelativePath="..\..\lib\Transforms\Utils\BasicInliner.cpp"
408 >
409
410
407411 RelativePath="..\..\lib\Transforms\Utils\BreakCriticalEdges.cpp"
408412 >
409413
0 /* This file is appended to config.h.in to form the Windows version of
11 * config.h */
22
3 #define PACKAGE_NAME "LLVM (win32 vc7.1)"
4 #define PACKAGE_VERSION 1.4
3 #define PACKAGE_NAME "LLVM (win32 vc8.0)"
4 #define PACKAGE_VERSION 2.1
55 #define HAVE_WINDOWS_H 1
66 #define HAVE_LIMITS_H 1
77 #define HAVE_SYS_STAT_H 1
2121 #define LLVM_ON_WIN32 1
2222
2323 #define strtoll strtol
24 #define stricmp _stricmp
25 #define strdup _strdup
26