Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] EquivalenceClasses: findValue vs. findLeader"
2010 Jul 12
1
[LLVMdev] [patch] EquivalenceClasses.h
getOrInsertLeaderValue cannot be const because it calls insert.
Index: include/llvm/ADT/EquivalenceClasses.h
===================================================================
--- include/llvm/ADT/EquivalenceClasses.h (revision 108148)
+++ include/llvm/ADT/EquivalenceClasses.h (working copy)
@@ -169,7 +169,7 @@
/// getOrInsertLeaderValue - Return the leader for the specified
value that is
2007 May 09
0
[LLVMdev] EquivalenceClasses
On 5/9/07, David Greene <greened at obbligato.org> wrote:
>
> Can someone explain the terminology used in the Doxygen
> comments for EquivalenceClasses? Specifically, what is
> a "Leader" as opposed to other members of an equivalence
> class?
As far as I understand, leader is the first element of the class within the
std::set container where all element of all
2007 May 09
2
[LLVMdev] EquivalenceClasses
Can someone explain the terminology used in the Doxygen
comments for EquivalenceClasses? Specifically, what is
a "Leader" as opposed to other members of an equivalence
class?
Say, for example, I want to create a set of equivalence
classes to specify subset relationships. Imagine B is
a subset of A, C is a subset of B, E is a subset of D
and D has no relation to any other set. I'd
2005 Mar 21
1
[LLVMdev] LLVM CVS Build Broken + one line fix
The current LLVM CVS HEAD does not build for me (RedHat 9). The issue
is a one line fix. The file "include/llvm/ADT/EquivalenceClasses.h"
needs to include <stdint.h> in order to get the typedef for "intptr_t."
If anyone wants me to make a patch for this, let me know. The build
error that this solves is:
llvm[3]: Compiling DataStructure.cpp for Debug build
In file
2009 Dec 03
3
[LLVMdev] patch for portability
Sorry, always end up not replying to the list:
The main issue with dealing with next this way is that people adding new
uses of next will probably not be using c++0x and therefore won't know it's
ambiguous and that it needs to be qualified.
There are also two issues with rvalue references and the STL:
1. EquivalenceClasses, in the insert and findLeader functions, it uses map
functions
2010 May 02
0
[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.
Hey,
So I tried to fix these errors, and have everything compiling now... not too
difficult, just annoying.
error C2248: 'llvm::EquivalenceClasses<
>
> ElemTy>::ECValue::ECValue' : cannot access private member declared in class
> 'llvm::EquivalenceClasses<ElemTy>::ECValue' C:\Program Files
> (x86)\Microsoft Visual Studio 10.0\VC\include\xmemory 208
2009 Dec 03
0
[LLVMdev] patch for portability
On Dec 3, 2009, at 5:24 AM, Ahmed Charles wrote:
> Sorry, always end up not replying to the list:
>
> The main issue with dealing with next this way is that people adding new uses of next will probably not be using c++0x and therefore won't know it's ambiguous and that it needs to be qualified.
True. But when this code is compiled under C++0X you get an easy to diagnose, easy
2010 May 02
3
[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.
Hey,
Downloaded the release, used CMake to create solution... building mostly
seems to be OK, except for a couple of compiler errors.
warning C4090: 'function' : different 'const' qualifiers
d:\companyone\external\llvm\source\llvm-2.7\lib\support\regengine.inc 188
error C2248: 'llvm::EquivalenceClasses<ElemTy>::ECValue::ECValue' : cannot
access private member
2006 Mar 27
1
[LLVMdev] could you give me some advice ?
excuse me for bother you again .
a little supplement
Constant* c = findValue(m,"E1$entry");
Constant* c2 = findValue(m,"E1$str");
I can get string object from c2
string s = cast<ConstantArray>(c2)->getAsString();
but it is not applicable for c
string s= cast<ConstantArray>(c)->getAsString(); // Assert Fail
because c is ConstantExpr::GetElementPtr
2006 Mar 25
1
[LLVMdev] could you give me some advice ?
hi
I have one llvm program like this :
...
; define ConstantArray
"E1$str" = internal constant [3 x sbyte] c"E1\00"
; use getPtrPtrFromArrayPtr to define SByte* from ConstantArray
"E1$entry" = internal constant sbyte* getelementptr ([3 x sbyte]* "E1$str", uint 0, uint 0)
...
when i want to get std::string object from this declaration in
2009 Dec 03
0
[LLVMdev] patch for portability
On Dec 2, 2009, at 6:54 AM, Howard Hinnant wrote:
> I've completed a survey of llvm for unnecessary dependencies on
> libstdc++, and on conflicts with the upcoming C++0X standard, and am
> recommending several changes in the enclosed patch (created with svn
> diff).
Thanks, applied here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091130/092102.html
I
2009 Dec 02
2
[LLVMdev] patch for portability
I've completed a survey of llvm for unnecessary dependencies on libstdc++, and on conflicts with the upcoming C++0X standard, and am recommending several changes in the enclosed patch (created with svn diff).
Here is a summary of the patch:
---
#include <cstdlib> added to LinkAllVMCore.h and LinkAllCodegenComponents.h to declare std::getenv.
Changed next(...) to llvm::next(...) in
2010 May 02
2
[LLVMdev] Compiling LLVM 2.7 with Visual Studio 2010.
Sorry for just talking to myself here, just trying to keep people in the
loop on my findings.
The problem seems to be a much larger issue with the Visual Studio 2010 C++
Compiler and not really related to clang/llvm. The following snippet of code
does *NOT *compile in 2010..
#include <vector>
int main(int argc, char* argv[])
{
std::pair<int, void*> mypair(0, NULL);
return 0;
}
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
Hello,
I Have a question related to the RT check on pointers during Loop Access Analysis pass.
There is a testcase with loop code that consist of 4 different memory operations referring two global objects of different address spaces.
One from global constant (address space 4, addr_size = 64) and the other from local, LDS (address space 3, addr_size= 32).
(Details of various address spaces
2016 Jun 28
0
SD virt regs question
from the SD / SelectionDAG form of a global-virt-reg, IE a CopyToReg or CopyFromReg
where the Reg is a virtual-register (not a physical-register),
I need to compute the set of all other global-virt-regs that this one is connected
to through PHI nodes
as the PHI nodes set up equivalence relations,
I should be able to use ADT/EquivalenceClasses.h
which seems to implement a generic Union-Find
2018 Apr 25
0
Help on understanding assume shape array processing and array descriptors in LLVM IR
Hello,
I believe these descriptors are specific to flang, not to LLVM. You should probably ask your question on flang-dev list.
Thank you,
--Eugene
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Venkataramanan Kumar via llvm-dev
Sent: Wednesday, April 25, 2018 8:44 AM
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] Help on understanding assume shape array
2018 Apr 25
2
Help on understanding assume shape array processing and array descriptors in LLVM IR
Hi,
I am trying to understand how assume shaped arrays are received and
processed in LLVM IR. I am using "flang" for my front end.
There seems to be an array descriptor received as implicit argument
for every assume shaped array.
For my test routine:
---snip--
SUBROUTINE test(a,b,Li,Lj,Istr,Iend,Jstr,Jend)
INTEGER, INTENT(IN) :: Li,Lj
INTEGER, INTENT(IN) :: Istr, Iend,
2020 Jul 26
2
[LAA] RtCheck on pointers of different address spaces.
Hi Stefanos,
Attached the testcase. I tried to reduce it further, but the problem goes away when I remove the instructions further.
There is a nested loop and the fault occurs while processing the inner loop (for.body)
To reproduce the crash:
opt -O3 testcase.ll -o out.ll
> `groupChecks()` will only try to group pointers that are on the same alias set.
If that’s true, the RT check
2007 Jul 10
1
[LLVMdev] A question about LLVM and pool allocation
HI guys.
I'm trying to build the poolalloc on llvm-2.0 but there exist some errors.
Can you tell me which version of llvm is known to make the poolalloc build
and install successful?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070710/4ab5e155/attachment.html>
2006 Mar 27
0
[LLVMdev] could you give me some advice ?
for example , I have a LLVM bc file generated from c program like this
...
char E1$str[3] = "E1";
char* E1$entry = (char*)E1$str;
struct { char* name_list[16]; } table = { E1$entry, E2$entry, ... };
...
now I need load the bc file , get all names ("E1","E2"...) , then print and save it.
of course, i only know the global variable table name . I can get