Displaying 20 results from an estimated 66 matches for "addressspace".
Did you mean:
address_space
2011 Oct 26
1
[LLVMdev] AddressSpace question
Hellp
One of the data members of class PointerType is [unsigned] AddressSpace
What is its role? I didn`t find sufficient description about it in the
LLVM documentation. Could someone please point me where can I get
description about different AddressSpaces?
What I saw that address spaces may affect how optimizations are
performed –Where can I get more information about thi...
2009 Apr 28
1
[LLVMdev] AddressSpace of a GlobalAddress
Every GlobalAddress has a GlobalValue, Every GlobalValue is a
PointerType, Every PointerType has an AddressSpace. So is it ok to add a
method getAddressSpace in GlobalAddressSDNode class itself?
Currently we have to do GSDN->getGlobal()->getType()->getAddressSpace().
- Sanjiv
2013 Jul 19
4
[LLVMdev] Disable vectorization for unaligned data
...y the data back and forth from the source to the
top of the stack and work from there. This is very costly, I rather get
scalar operations.
Then I tried to add:
unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
unsigned Alignment,
unsigned AddressSpace) const {
if (Src->isVectorTy() && Alignment != 16)
return 10000; // <== high number to try to avoid unaligned load/store.
return TargetTransformInfo::getMemoryOpCost(Opcode, Src, Alignment,
AddressSpace);
}
Except that this doesn't work because Alignment will alwa...
2008 Sep 18
2
[LLVMdev] store addrspace qualifier
...Op, SelectionDAG& DAG){
const StoreSDNode* storeOp = dyn_cast<StoreSDNode>(Op.Val);
const SDValue& dstPtr = storeOp->getBasePtr();
const SrcValueSDNode* svdstVal = cast<SrcValueSDNode>(dstPtr.Val);
const Value* dstVal = svdstVal->getValue();
int addressSpace = ADDRESS_NONE;
const Type* dstType = dstVal->getType();
if (isa<PointerType>(dstType)) {
const PointerType* ptrType = cast<PointerType>(dstType);
addressSpace = ptrType->getAddressSpace();
}
printf("Addr: %d\n", addressSpace);
SDV...
2010 Feb 12
1
[LLVMdev] ConstantMerge & addressSpaces
Hello,
It seems I stepped on a bug with the ConstantMerge IPO pass, regarding address spaces.
For example, if a module contains the following:
@a = internal constant i16 224
@b = internal addrspace(30) constant i16 224
Although a & b have the same initializer, i think they should not be merged. Attempting to do it anyway will trigger an assertion.
I guess the safe and easy way is to only
2011 Feb 18
6
[LLVMdev] [PATCH] OpenCL support - update on keywords
> -----Original Message-----
> From: Peter Collingbourne [mailto:peter at pcc.me.uk]
> Sent: 04 January 2011 21:42
> To: Anton Lokhmotov
> Cc: cfe-dev at cs.uiuc.edu
> Subject: Re: OpenCL support
>
> Here are my comments on the second patch.
>
> > +enum OpenCLAddressSpace {
> > + OPENCL_PRIVATE = 0,
> > + OPENCL_GLOBAL = 1,
> > + OPENCL_LOCAL = 2,
> > + OPENCL_CONSTANT = 3
> > +};
>
> If we are going to standardise these address space numbers across
> Clang and the LLVM backends, this enum declaration should be added
>...
2007 Sep 13
0
[LLVMdev] PointerTypes with AddressSpace
...gn issues.
-Chris
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Chris Lattner
> Sent: Wednesday, September 12, 2007 11:07 PM
> To: LLVM Developers Mailing List
> Subject: Re: [LLVMdev] PointerTypes with AddressSpace
>
>
> On Sep 12, 2007, at 6:41 PM, <Alireza.Moshtaghi at microchip.com>
> <Alireza.Moshtaghi at microchip.com> wrote:
>
>> Chris,
>> Extending LLVM IR to support PointerTypes that take an address
>> space is
>> what I was hoping to avoid. However,...
2007 Sep 13
0
[LLVMdev] PointerTypes with AddressSpace
On Sep 12, 2007, at 6:41 PM, <Alireza.Moshtaghi at microchip.com>
<Alireza.Moshtaghi at microchip.com> wrote:
> Chris,
> Extending LLVM IR to support PointerTypes that take an address
> space is
> what I was hoping to avoid. However, if we want to do things right,
> that
> is probably the way to go. Now that we got here, let me write some
> of my
>
2010 May 13
1
[LLVMdev] How to create Global Variables using LLVM API?
I am using llvm-2.6.
In the online documentation, the signature is
GlobalVariable::GlobalVariable ( const Type * Ty,
bool isConstant,
LinkageTypes Linkage,
Constant * Initializer = 0,
const Twine & Name = "",
bool ThreadLocal = false,
unsigned AddressSpace = 0
)
the link to the documenation is
http://llvm.org/doxygen/classllvm_1_1GlobalVariable.html
There are two constructors given. Second constructor signature is same as
the source code. The first one differs though.
In the source code the prototype of the constructor is at line 53 in
GlobalVar...
2007 Sep 13
2
[LLVMdev] PointerTypes with AddressSpace
...you think it will take to
do so?
Regards
Ali.
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Chris Lattner
Sent: Wednesday, September 12, 2007 11:07 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] PointerTypes with AddressSpace
On Sep 12, 2007, at 6:41 PM, <Alireza.Moshtaghi at microchip.com>
<Alireza.Moshtaghi at microchip.com> wrote:
> Chris,
> Extending LLVM IR to support PointerTypes that take an address
> space is
> what I was hoping to avoid. However, if we want to do things right,
&...
2013 Jul 20
0
[LLVMdev] Disable vectorization for unaligned data
...from the source to the top of the stack and work from there. This is very costly, I rather get scalar operations.
>
> Then I tried to add:
> unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
> unsigned Alignment,
> unsigned AddressSpace) const {
> if (Src->isVectorTy() && Alignment != 16)
> return 10000; // <== high number to try to avoid unaligned load/store.
> return TargetTransformInfo::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace);
> }
>
> Except that this doesn't wo...
2011 Feb 23
0
[LLVMdev] [PATCH] OpenCL support - update on keywords
...t; From: Peter Collingbourne [mailto:peter at pcc.me.uk]
> > Sent: 04 January 2011 21:42
> > To: Anton Lokhmotov
> > Cc: cfe-dev at cs.uiuc.edu
> > Subject: Re: OpenCL support
> >
> > Here are my comments on the second patch.
> >
> > > +enum OpenCLAddressSpace {
> > > + OPENCL_PRIVATE = 0,
> > > + OPENCL_GLOBAL = 1,
> > > + OPENCL_LOCAL = 2,
> > > + OPENCL_CONSTANT = 3
> > > +};
> >
> > If we are going to standardise these address space numbers across
> > Clang and the LLVM backends, thi...
2013 Jul 19
0
[LLVMdev] Disable vectorization for unaligned data
...source to the
> top of the stack and work from there. This is very costly, I rather get
> scalar operations.
>
> Then I tried to add:
> unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
> unsigned Alignment,
> unsigned AddressSpace) const {
> if (Src->isVectorTy() && Alignment != 16)
> return 10000; // <== high number to try to avoid unaligned load/store.
> return TargetTransformInfo::getMemoryOpCost(Opcode, Src, Alignment,
> AddressSpace);
> }
>
> Except that this doesn'...
2020 Jul 22
2
[RFC] Requiring explicit address space arguments for PointerType
...larity by setting an #ifdef
So far I've changed all default-zero calls for clang and some parts of
LLVM, but we haven't touched passes/targets that we don't add CHERI
support for [1].
I have uploaded these changes as https://reviews.llvm.org/D78491 which
effectively replaces
`unsigned AddressSpace = 0` with LLVM_DEFAULT_AS_PARAM(AddressSpace).
This macro expands to an argument with a default of zero unless
LLVM_NO_IMPLICIT_ADDRESS_SPACE is defined, in which case the argument
is required.
This allows incrementally removing the default zero from individual
files/directories by adding
add_defin...
2013 Jul 21
2
[LLVMdev] Disable vectorization for unaligned data
...f the stack and work from there. This is very costly, I rather get
> scalar operations.
> >
> > Then I tried to add:
> > unsigned getMemoryOpCost(unsigned Opcode, Type *Src,
> > unsigned Alignment,
> > unsigned AddressSpace) const {
> > if (Src->isVectorTy() && Alignment != 16)
> > return 10000; // <== high number to try to avoid unaligned
> load/store.
> > return TargetTransformInfo::getMemoryOpCost(Opcode, Src, Alignment,
> AddressSpace);
> > }
> >
&g...
2003 Jun 14
1
rsync out of memory problem
...2.5.6/io.c(165)
However, rsync has only increased in resident size to about 72 MB at this
point, while I have limits of:
cputime unlimited
filesize unlimited
datasize 8192MB
stacksize 1024MB
coredumpsize unlimited
resident 16033MB
descriptors 4096
addressspace 8192MB
Any comments? I have not seen anything in the archives that addresses
this. Thanks,
-smt
2019 Oct 01
2
Proposal for llvm.experimental.gc intrinsics for inttoptr and ptrtoint
For a datapoint, Julia uses the following function description to implement
approximately the capability of those functions. We then also verify that
there's no direct inttoptr/ptrtoint into our gc-tracked AddressSpace with a
custom verifier pass (among other sanity checks). I can provide additional
details and pointers to our gc-root tracking algorithm implementation if
desired (I also plan to be at the llvm-devmtg). It'd be great to know if
there's opportunities for collaboration, or at least sharing in...
2011 Feb 25
0
[LLVMdev] [PATCH] OpenCL support - update on keywords
...clude the word OpenCL in the name of this
>> enum/header. We may very well in the future want to define address
>> space constants for other languages, which should not overlap with
>> the OpenCL constants, by extending this enum.
> Good point. We have defined in llvm/Support/AddressSpaces.h:
>
> +namespace llvm {
> + namespace AddressSpaces {
> + enum AddressSpace {
> + PRIVATE = 0,
> + GLOBAL = 1,
> + LOCAL = 2,
> + CONSTANT = 3
> + };
> + }
> +}
The address space mechanism is used by some code generators to
differentia...
2008 Sep 17
0
[LLVMdev] store addrspace qualifier
The address qualifier is stored in the type of %result. From that
operand, you can get the Value and then call getType. The type for
result should be a PointerType which you cast to a PointerType and
get the getAddressSpace e.g. cast<PointerType>(Ty)->getAddressSpace()
-- Mon Ping
On Sep 17, 2008, at 1:06 PM, Villmow, Micah wrote:
> How do I access the address qualifier from the store instruction.
> Given the following code:
>
> define void @test_unary_op_anegate(float %x, float addrspace(11)*...
2013 Nov 15
4
[LLVMdev] Limit loop vectorizer to SSE
...zer::vectorizeMemoryInstruction(Instr
Type *DataTy = VectorType::get(ScalarDataTy, VF);
Value *Ptr = LI ? LI->getPointerOperand() : SI->getPointerOperand();
unsigned Alignment = LI ? LI->getAlignment() : SI->getAlignment();
+ if (Alignment == 0)
+ Alignment = 1;
unsigned AddressSpace = Ptr->getType()->getPointerAddressSpace();
unsigned ScalarAllocatedSize = DL->getTypeAllocSize(ScalarDataTy);
unsigned VectorElementSize = DL->getTypeStoreSize(DataTy)/VF;
Should fix this.
On Nov 15, 2013, at 3:49 PM, Joshua Klontz <josh.klontz at gmail.com> wrote:
>...