search for: constantfoldinstruct

Displaying 12 results from an estimated 12 matches for "constantfoldinstruct".

2011 Apr 17
2
[LLVMdev] Error compiling ConstantProp.cpp
...-2.6/include/llvm/Analysis/ConstantFolding.h: In member function ‘virtual bool<unnamed>::ConstantPropagation::runOnFunction(llvm::Function&)’: /home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h:32: error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*)’ /home/tarun/Desktop/compiler/LLVM/llvm-2.6/lib/Transforms/Hello/ConstantProp.cpp:71: error: at this point in file make: *** [/home/tarun/Desktop/compiler/LLVM/build/lib/Transforms/Hello/Release/ConstantProp.o] Error 1 On Sun...
2011 Apr 17
2
[LLVMdev] Error compiling ConstantProp.cpp
While compiling the ConstantProp.cpp I am getting the following error. error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*) Regards Tarun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110417/98110dc3/attachment.html>
2011 May 03
1
[LLVMdev] Error compiling ConstantProp.cpp
Hi While compiling the ConstantProp.cpp I am getting the following error. error: too few arguments to function ‘llvm::Constant* llvm::ConstantFoldInstruction( llvm::Instruction*, llvm::LLVMContext&, const llvm::TargetData*) I am using llvm-2.6 and the ConstProp.cpp file is http://llvm.org/docs/doxygen/html/ConstantProp_8cpp_source.html and the exact error message is: llvm[0]: Compiling ConstantProp.cpp for Release build (PIC) /home/tarun/De...
2011 Apr 17
0
[LLVMdev] Error compiling ConstantProp.cpp
On Sat, Apr 16, 2011 at 5:07 PM, tarun agrawal <tarun at cse.iitb.ac.in> wrote: > While compiling the ConstantProp.cpp I am getting the following error. > > error: too few arguments to function ‘llvm::Constant* > llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const > llvm::TargetData*) If you're reporting a build error, please include the complete error output and the source version you're using (release version or SVN revision). -Eli
2011 Apr 17
0
[LLVMdev] Error compiling ConstantProp.cpp
...s/ConstantFolding.h: > In member function ‘virtual > bool<unnamed>::ConstantPropagation::runOnFunction(llvm::Function&)’: > /home/tarun/Desktop/compiler/LLVM/llvm-2.6/include/llvm/Analysis/ConstantFolding.h:32: > error: too few arguments to function ‘llvm::Constant* > llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::LLVMContext&, const > llvm::TargetData*)’ > /home/tarun/Desktop/compiler/LLVM/llvm-2.6/lib/Transforms/Hello/ConstantProp.cpp:71: > error: at this point in file > make: *** > [/home/tarun/Desktop/compiler/LLVM/build/lib/Transforms/Hello/Release/Constan...
2008 Jun 17
0
[LLVMdev] Transforming ConstantExprs to Instructions
...have a protected and virtual replaceUseWithInstr method which is called for > each use by replaceWithInstr(). > > Is this a useful addition? Is this a sane approach? I can't imagine any uses for a method like that besides a pass like yours. (This method is essentially the opposite of ConstantFoldInstruction, and is therefore usually the opposite of what we want to do.) Anyone else have any ideas for uses? That said, it should be pretty simple to write recursively: first, transform all the constants that use the current constant (this must be possible due to the constraint that the global is only...
2008 Dec 18
0
[LLVMdev] Troubles with clang and llvm libraries and simple Xcode project
...ned symbols: clang::ASTConsumer::InitializeTU(clang::TranslationUnit&) clang::ASTConsumer::~ASTConsumer() ... vtable for clang::DeclRefExpr vtable for clang::BinaryOperator ... typeinfo for llvm::AliasAnalysis llvm::ConstantFoldCall(llvm::Function*, llvm::Constant* const*, unsigned int) llvm::ConstantFoldInstruction(llvm::Instruction*, llvm::TargetData const*) llvm::ConstantFoldLoadThroughGEPConstantExpr(llvm::Constant*, llvm::ConstantExpr*) llvm::CallGraphLinkVar llvm::CallGraphSCCPass::assignPassManager(llvm::PMStack&, llvm::PassManagerType) vtable for llvm::CallGraphSCCPass ... and so on, then:...
2014 Sep 19
2
[LLVMdev] More careful treatment of floating point exceptions
Hi Sanjay, Thanks, I saw this flag and it's definitely should be considered, but it appeared to me to be static characteristic of target platform. I'm not sure how appropriate it would be to change its value from a front-end. It says "Has", while optional flag would rather say "Uses" meaning that implementation cares about floating point exceptions. Regards, Sergey
2014 Sep 25
2
[LLVMdev] More careful treatment of floating point exceptions
...lvm/Analysis/ConstantFolding.h b/include/llvm/Analysis/ConstantFolding.h index 09d45ca..8f013ec 100644 --- a/include/llvm/Analysis/ConstantFolding.h +++ b/include/llvm/Analysis/ConstantFolding.h @@ -38,14 +38,16 @@ namespace llvm { /// and stores, which have no constant expression form. Constant *ConstantFoldInstruction(Instruction *I, const DataLayout *TD = nullptr, - const TargetLibraryInfo *TLI = nullptr); + const TargetLibraryInfo *TLI = nullptr, + bool HonorFPExceptions = fa...
2008 Jun 17
4
[LLVMdev] Transforming ConstantExprs to Instructions
Hi, I've been struggling with constantexprs for a bit. I'm working on a pass that transforms global variables to local variables, and in particular the GetElementPtrConstantExpr is a bit troublesome. For my transformation to properly work, a global value should only be used by Instructions, not by ConstantExprs. I was thinking to add a ConstantExpr::replaceWithInstr() virtual method,
2010 Feb 26
0
[LLVMdev] a question of the simple constant propagation pass
...= false; 64 65 while (!WorkList.empty()) { 66 Instruction *I = *WorkList.begin(); 67 WorkList.erase(WorkList.begin()); // Get an element from the worklist... 68 69 if (!I->use_empty()) // Don't muck with dead instructions... 70 if (Constant *C = ConstantFoldInstruction(I, F.getContext())) { 71 // Add all of the users of this instruction to the worklist, they might 72 // be constant propagatable now... 73 for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); 74 UI != UE; ++UI) 75 WorkList.inse...
2014 Apr 22
2
[LLVMdev] InstCombine strips the inBounds attribute in GetElementPtr ConstantExpr
...n ConstantFoldConstantExpressionImpl (CE=0x2fcb0f8, TD=0x2fc8830, TLI=0x2feb390, FoldedOps=...) at ConstantFolding.cpp:931 #3 0x00000000018926d5 in llvm::ConstantFoldConstantExpression (CE=0x2fcb0f8, TD=0x2fc8830, TLI=0x2feb390) at ConstantFolding.cpp:941 #4 0x0000000001892226 in llvm::ConstantFoldInstruction (I=0x2fcb208, TD=0x2fc8830, TLI=0x2feb390) at ConstantFolding.cpp:883 #5 0x000000000171284e in AddReachableCodeToWorklist (BB=0x2fca970, Visited=..., IC=..., DL=0x2fc8830, TLI=0x2feb390) at InstructionCombining.cpp:2283 #6 0x0000000001712e91 in llvm::InstCombiner::DoOneIteration (t...