<p>I think that is fixed already. Can you please try updating?</p>
<p>On Aug 8, 2010 12:57 PM, "Francois Pichet" <<a href="mailto:pichet2000@gmail.com">pichet2000@gmail.com</a>> wrote:<br type="attribution">> This break CMake on Windows:<br>> <br>> -- Configuring done<br>
> CMake Error in tools/bugpoint/CMakeLists.txt:<br>>   Cannot find source file "TestPasses.cpp".  Tried extensions .c .C .c++ .cc<br>>   .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx<br>> <br>
> On Sat, Aug 7, 2010 at 5:48 PM, Rafael Espindola<br>> <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br>>> Author: rafael<br>>> Date: Sat Aug  7 16:48:09 2010<br>
>> New Revision: 110520<br>>><br>>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=110520&view=rev">http://llvm.org/viewvc/llvm-project?rev=110520&view=rev</a><br>>> Log:<br>>> Move the bugpoint test passes to a plugin in preparation for having bugpoint<br>
>> use opt.<br>>><br>>> Added:<br>>>    llvm/trunk/tools/bugpoint-passes/<br>>>    llvm/trunk/tools/bugpoint-passes/TestPasses.cpp<br>>>      - copied, changed from r110518, llvm/trunk/tools/bugpoint/TestPasses.cpp<br>
>> Removed:<br>>>    llvm/trunk/tools/bugpoint/TestPasses.cpp<br>>> Modified:<br>>>    llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll<br>>>    llvm/trunk/test/BugPoint/remove_arguments_test.ll<br>
>>    llvm/trunk/tools/Makefile<br>>><br>>> Modified: llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll<br>>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll?rev=110520&r1=110519&r2=110520&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll?rev=110520&r1=110519&r2=110520&view=diff</a><br>
>> ==============================================================================<br>>> --- llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll (original)<br>>> +++ llvm/trunk/test/BugPoint/crash-narrowfunctiontest.ll Sat Aug  7 16:48:09 2010<br>
>> @@ -1,6 +1,7 @@<br>>>  ; Test that bugpoint can narrow down the testcase to the important function<br>>> +; FIXME: This likely fails on windows<br>>>  ;<br>>> -; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null<br>
>> +; RUN: bugpoint -load %llvmlibsdir/BugpointPasses.so %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null<br>>><br>>>  define i32 @foo() { ret i32 1 }<br>>><br>>><br>>> Modified: llvm/trunk/test/BugPoint/remove_arguments_test.ll<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/remove_arguments_test.ll?rev=110520&r1=110519&r2=110520&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/test/BugPoint/remove_arguments_test.ll?rev=110520&r1=110519&r2=110520&view=diff</a><br>
>> ==============================================================================<br>>> --- llvm/trunk/test/BugPoint/remove_arguments_test.ll (original)<br>>> +++ llvm/trunk/test/BugPoint/remove_arguments_test.ll Sat Aug  7 16:48:09 2010<br>
>> @@ -1,4 +1,5 @@<br>>> -; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes<br>>> +; FIXME: This likely fails on windows<br>>> +; RUN: bugpoint -load %llvmlibsdir/BugpointPasses.so %s -output-prefix %t -bugpoint-crashcalls -silence-passes<br>
>>  ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s<br>>><br>>>  ; Test to make sure that arguments are removed from the function if they are<br>>><br>>> Modified: llvm/trunk/tools/Makefile<br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=110520&r1=110519&r2=110520&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=110520&r1=110519&r2=110520&view=diff</a><br>
>> ==============================================================================<br>>> --- llvm/trunk/tools/Makefile (original)<br>>> +++ llvm/trunk/tools/Makefile Sat Aug  7 16:48:09 2010<br>>> @@ -20,7 +20,7 @@<br>
>>                  llc llvm-ranlib llvm-ar llvm-nm \<br>>>                  llvm-ld llvm-prof llvm-link \<br>>>                  lli llvm-extract llvm-mc \<br>>> -                 bugpoint llvm-bcanalyzer llvm-stub \<br>
>> +                 bugpoint bugpoint-passes llvm-bcanalyzer llvm-stub \<br>>>                  llvmc<br>>><br>>>  # Let users override the set of tools to build from the command line.<br>>><br>
>> Copied: llvm/trunk/tools/bugpoint-passes/TestPasses.cpp (from r110518, llvm/trunk/tools/bugpoint/TestPasses.cpp)<br>>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint-passes/TestPasses.cpp?p2=llvm/trunk/tools/bugpoint-passes/TestPasses.cpp&p1=llvm/trunk/tools/bugpoint/TestPasses.cpp&r1=110518&r2=110520&rev=110520&view=diff">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint-passes/TestPasses.cpp?p2=llvm/trunk/tools/bugpoint-passes/TestPasses.cpp&p1=llvm/trunk/tools/bugpoint/TestPasses.cpp&r1=110518&r2=110520&rev=110520&view=diff</a><br>
>> ==============================================================================<br>>>    (empty)<br>>><br>>> Removed: llvm/trunk/tools/bugpoint/TestPasses.cpp<br>>> URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/TestPasses.cpp?rev=110519&view=auto">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/TestPasses.cpp?rev=110519&view=auto</a><br>
>> ==============================================================================<br>>> --- llvm/trunk/tools/bugpoint/TestPasses.cpp (original)<br>>> +++ llvm/trunk/tools/bugpoint/TestPasses.cpp (removed)<br>
>> @@ -1,75 +0,0 @@<br>>> -//===- TestPasses.cpp - "buggy" passes used to test bugpoint --------------===//<br>>> -//<br>>> -//                     The LLVM Compiler Infrastructure<br>>> -//<br>
>> -// This file is distributed under the University of Illinois Open Source<br>>> -// License. See LICENSE.TXT for details.<br>>> -//<br>>> -//===----------------------------------------------------------------------===//<br>
>> -//<br>>> -// This file contains "buggy" passes that are used to test bugpoint, to check<br>>> -// that it is narrowing down testcases correctly.<br>>> -//<br>>> -//===----------------------------------------------------------------------===//<br>
>> -<br>>> -#include "llvm/BasicBlock.h"<br>>> -#include "llvm/Constant.h"<br>>> -#include "llvm/Instructions.h"<br>>> -#include "llvm/Pass.h"<br>>> -#include "llvm/Type.h"<br>
>> -#include "llvm/Support/InstVisitor.h"<br>>> -<br>>> -using namespace llvm;<br>>> -<br>>> -namespace {<br>>> -  /// CrashOnCalls - This pass is used to test bugpoint.  It intentionally<br>
>> -  /// crashes on any call instructions.<br>>> -  class CrashOnCalls : public BasicBlockPass {<br>>> -  public:<br>>> -    static char ID; // Pass ID, replacement for typeid<br>>> -    CrashOnCalls() : BasicBlockPass(ID) {}<br>
>> -  private:<br>>> -    virtual void getAnalysisUsage(AnalysisUsage &AU) const {<br>>> -      AU.setPreservesAll();<br>>> -    }<br>>> -<br>>> -    bool runOnBasicBlock(BasicBlock &BB) {<br>
>> -      for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)<br>>> -        if (isa<CallInst>(*I))<br>>> -          abort();<br>>> -<br>>> -      return false;<br>>> -    }<br>
>> -  };<br>>> -<br>>> -  char CrashOnCalls::ID = 0;<br>>> -  RegisterPass<CrashOnCalls><br>>> -  X("bugpoint-crashcalls",<br>>> -    "BugPoint Test Pass - Intentionally crash on CallInsts");<br>
>> -}<br>>> -<br>>> -namespace {<br>>> -  /// DeleteCalls - This pass is used to test bugpoint.  It intentionally<br>>> -  /// deletes some call instructions, "misoptimizing" the program.<br>
>> -  class DeleteCalls : public BasicBlockPass {<br>>> -  public:<br>>> -    static char ID; // Pass ID, replacement for typeid<br>>> -    DeleteCalls() : BasicBlockPass(ID) {}<br>>> -  private:<br>
>> -    bool runOnBasicBlock(BasicBlock &BB) {<br>>> -      for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)<br>>> -        if (CallInst *CI = dyn_cast<CallInst>(I)) {<br>>> -          if (!CI->use_empty())<br>
>> -            CI->replaceAllUsesWith(Constant::getNullValue(CI->getType()));<br>>> -          CI->getParent()->getInstList().erase(CI);<br>>> -          break;<br>>> -        }<br>>> -      return false;<br>
>> -    }<br>>> -  };<br>>> -<br>>> -  char DeleteCalls::ID = 0;<br>>> -  RegisterPass<DeleteCalls><br>>> -  Y("bugpoint-deletecalls",<br>>> -    "BugPoint Test Pass - Intentionally 'misoptimize' CallInsts");<br>
>> -}<br>>><br>>><br>>> _______________________________________________<br>>> llvm-commits mailing list<br>>> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
>><br>> <br>> _______________________________________________<br>> llvm-commits mailing list<br>> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</p>