search for: namespacellvm

Displaying 20 results from an estimated 30 matches for "namespacellvm".

2014 Feb 21
3
[LLVMdev] Status of http://llvm.org/doxygen
Hi, I found that http://llvm.org/doxygen seems to be out-of-date. The footer shows that the files are regenerated everyday. I guess that the input repository for doxygen has not been updated for a while. For example, http://llvm.org/doxygen/namespacellvm.html#adeb6bbe8b1bed333ee7608e1939153c0 It says llvm::ParseBitcodeFile() has following prototype: Module *ParseBitcodeFile(MemoryBuffer *Buffer, LLVMContext &Context, std::string *ErrMsg = 0); However, from the subversion log, it seem that it have been changed to: ErrorOr<Module *...
2016 Nov 24
2
Saving private DebugInfo
Hi all, Sometimes llvm::UpgradeDebugInfo <http://llvm.org/docs/doxygen/html/namespacellvm.html#ad3c29183c5faa7f5a352807af8aca268> drops debug info which is pretty compatible with recent llvm version ( http://stackoverflow.com/questions/27023713/missing-debug-metadata-in-llvm-after-xcode-update ) and sometimes it drops something really outdated, but acceptable for me. In both cases I...
2015 Apr 21
2
[LLVMdev] Using an alias analysis pass
Hello LLVMdev, I’m using LLVM to do static analysis exclusively (without any code generation). To implement this analysis, I’m using multiple address spaces to disambiguate the purpose of the pointed memory. Since address spaces never alias in my model, I set on to implement an alias analysis pass that would exactly provide this information, as I’m seeing a couple of otherwise dead store that
2011 Sep 08
1
[LLVMdev] Merging Modules
...> combine them all into one monolithic Module before transforming and > optimizing (The original Modules must remain unmodified)**** > > > See Linker::LinkModules(..). > Mm, I think LinkModules is destructive to one of its input modules. Try CloneFunction http://llvm.org/doxygen/namespacellvm.html#aabb040f50a7e75ad8d58bfc5d95636a4 maybe? > - > Devang > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > ---------...
2012 Dec 16
2
[LLVMdev] write module to .bc file
i'm afraid this question is extremely basic, but i've assumed that dumping a .bc file from a module was a trivial operation, but now, first time i have to actually do it from code, for the life of me i can't find one missing step in the process: static void WriteModule ( const Module * M, BitstreamWriter & Stream )
2008 Jan 14
0
[LLVMdev] Linking Transform/Utils
...gin-top: 0pt;">Nadav<br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;">[1] CloneFunction: <a class="moz-txt-link-freetext" href="http://llvm.org/doxygen/namespacellvm.html#a519">http://llvm.org/doxygen/namespacellvm.html#a519</a></p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><br> </p> </body> </html>
2008 Jun 11
0
[LLVMdev] Possible miscompilation?
...which can be compiled to an executable >> (and shows the problem). > > I've been generating functions using a builder and then compiling > them with ExecutionEngine::getPointerToFunction(). Is there some way > I can get compilable IR from that? http://llvm.org/doxygen/namespacellvm.html#a322 — Gordon
2016 Jul 15
2
clone function
...rguments: it generates independant arguments with their own address (which differs with the one to clone). So it is definitely not CloneFunction that I should have put the question on but CloneFunctionInto, my bad. For CloneFunction I followed the signature here ( http://llvm.org/docs/doxygen/html/namespacellvm.html#a5596246c2350cb74f31ffa7695d5923c) but it seems not to be the version I have in my source files actually... > > You have to design this as a two-part process: > > 1) Clone the function (if you need to keep the original around) > 2) Change the function signature. For this there...
2008 Jun 11
2
[LLVMdev] Possible miscompilation?
Duncan Sands wrote: > Can you please attach IR which can be compiled > to an executable (and shows the problem). I've been generating functions using a builder and then compiling them with ExecutionEngine::getPointerToFunction(). Is there some way I can get compilable IR from that? Cheers, Gary -- http://gbenson.net/
2017 Aug 07
2
vrp
I am primarily interested in phi nodes and their induction variables, in ValueTracking file there is an analysis of them, but if the upper bound is inf, it is not working? 2017-08-07 11:41 GMT+02:00 Anastasiya Ruzhanskaya < anastasiya.ruzhanskaya at frtk.ru>: > So, it is not supported to determine by this instruction : %cmp = icmp slt > i32 %i.03, 99, > that %i.03 = phi i32 [ 0,
2010 May 24
1
[LLVMdev] obtain programer-defined structure name.
Hi, I intend to trace the Use instructions of a variable object in its lifecycle, so, the first step is to obtain the type of the object. However, the datastructure object is complicated typed value, such as "struct file *f" in linux kernel. The problerm is what operations should be taken to obtain the type of Value "struct *file", and locate or such type Value*s *in a
2011 Sep 08
2
[LLVMdev] Merging Modules
Hi, Can anyone point me to some code (or offer advice) on how I can merge one Module into another? I have a list of Modules each containing one Function. I would like to combine them all into one monolithic Module before transforming and optimizing (The original Modules must remain unmodified) Thanks, paul -------------- next part -------------- An HTML attachment was scrubbed... URL:
2011 Sep 08
0
[LLVMdev] Merging Modules
Hi Paul, On Sep 8, 2011, at 10:52 AM, Redmond, Paul wrote: > Hi, > > Can anyone point me to some code (or offer advice) on how I can merge one Module into another? > > I have a list of Modules each containing one Function. I would like to combine them all into one monolithic Module before transforming and optimizing (The original Modules must remain unmodified) > See
2020 Jul 09
2
Understand alias-analysis results
...tarting with "AA Query" around the 22 min. mark): “Pointers, Alias & ModRef Analyses” (2018 EuroLLVM Developers’ Meeting: A. Sbirlea & N. Lopes) https://www.youtube.com/watch?v=r0XVS4Atl3U When you return `AliasResult` from your analysis you choose one: https://llvm.org/doxygen/namespacellvm.html#ae1738272abcf2ac638b97e7dc6360cfd You can see a simple example here (`TARAAResult::alias`): https://blog.tartanllama.xyz/llvm-alias-analysis/ > 2. I note that using the latest opt (version 11.0?) gives different > outputs with my local opt (version 6.0). For opt (version 6.0),...
2010 Sep 07
0
[LLVMdev] MachineMemOperand and dependence information
On Sep 7, 2010, at 10:48 AM, Akira Hatanaka wrote: > I have two questions regarding MachineMemOperands and dependence information. > > Q1) I noticed that MachineMemOperands are lost when two LDRs are combined and a LDRD is generated in ARMPreAllocLoadStoreOpt:::RescheduleOps. > > (before optimization) > %reg1033<def> = LDR %reg1030, %reg0, 4100, pred:14, pred:%reg0;
2016 Jul 14
2
clone function
Hi, I am trying to use the CloneFunction from llvm/Transforms/Utils/Cloning.h and I don't understand how the ValueToValueMapTy argument should be initialized. For instance, let say I want to clone this function (to add an argument): define void @function(i32 %i) #0 { entry: %i.addr = alloca i32, align 4 store i32 %i, i32* %i.addr, align 4 ret void } to another function which should,
2010 Sep 07
3
[LLVMdev] MachineMemOperand and dependence information
I have two questions regarding MachineMemOperands and dependence information. Q1) I noticed that MachineMemOperands are lost when two LDRs are combined and a LDRD is generated in ARMPreAllocLoadStoreOpt:::RescheduleOps. (before optimization) %reg1033<def> = LDR %reg1030, %reg0, 4100, pred:14, pred:%reg0; mem:LD4[%uglygep10] %reg1054<def> = LDR %reg1030, %reg0, 4104, pred:14,
2018 Sep 04
2
Replacing a function from one module into another one
Hi Philip, Thank you very much for your answer, the vector declaration example worked. I'm pretty sure the ValueToValueMapTy is the last thing I need because I even saw there is another function that could help me llvm*:*:RemapFunction <http://llvm.org/doxygen/namespacellvm.html#addf0183e92893bdbcde00fc9091dda93>; but my problem is that I don't know how to populate the ValueToValueMapTy (VMap) and I couldn't find a single complete example on the internet. To begin with, as the name implies (and also from some errors that I got) the ValueToValueMapTy takes a...
2020 Jul 10
2
Understand alias-analysis results
...min. mark): > “Pointers, Alias & ModRef Analyses” (2018 EuroLLVM Developers’ Meeting: > A. Sbirlea & N. Lopes) > https://www.youtube.com/watch?v=r0XVS4Atl3U > > When you return `AliasResult` from your analysis you choose one: > https://llvm.org/doxygen/namespacellvm.html#ae1738272abcf2ac638b97e7dc6360cfd > > You can see a simple example here (`TARAAResult::alias`): > https://blog.tartanllama.xyz/llvm-alias-analysis/ > > >     2. I note that using the latest opt (version 11.0?) gives > different > >     outputs...
2013 Feb 27
3
[LLVMdev] llvm get annotations
...GetUnderlyingObject()`,`getUnderlyingObjectFromInt(), getUnderlyingObjects()`. I hacked the method `llvm::GetUnderlyingObject()`...that is with Capital G (different from `getUnderlyingObject()`) and call `myGetUnderlyingObject(annotatedValue,0,6)` as mentioned at http://llvm.org/docs/doxygen/html/namespacellvm.html#ace6c957db39858291c6ce01c38e78480. 2. Since I write my code into runOnFunction(), I have problems with `getGlobalVariableString(std::string name)` function from the stackoverflow link. So I have to integrate the following part of code into runOnFunction(): std::string name = gv->getNa...