Displaying 6 results from an estimated 6 matches for "getnumslots".
2013 Sep 10
0
[LLVMdev] Fwd: BitcodeWriter.cpp, WriteAttributeGroupTable attribute slot index is hardcoded.. ?
Hi all.
In the beginning of this method I see the next:
for (unsigned i = 0, e = AttrGrps.size(); i != e; ++i) {
AttributeSet AS = AttrGrps[i];
for (unsigned i = 0, e = AS.getNumSlots(); i != e; ++i) {
AttributeSet A = AS.getSlotAttributes(i);
Record.push_back(VE.getAttributeGroupID(A));
Record.push_back(AS.getSlotIndex(i));
for (AttributeSet::iterator I = AS.begin(0), E = AS.end(0);
...
Why 'begin(0)'?
Shouldn't it be 'AS.be...
2013 Apr 29
1
[LLVMdev] Many tests fail on Win64
I fell over this issue yesterday myself with lots of asserts being thrown.
I think the issue is in lib/IR/AsmWriter.cpp:1618 in the function
AssemblyWriter::printFunction(const Function *F)
Looking at the code I think the 2nd for loop should be preceded by the test
...
if (Idx < AS.getNumSlots())
Not sure why it doesn't fail on other platforms as it looks like it should
be a genuine issue on all platform.
That change significantly reduced the failures on my Windows build.
Keith
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]...
2013 Apr 29
3
[LLVMdev] Many tests fail on Win64
Hi,
I check-out the latest version of LLVM and see many failures (on Win64):
********************
67> FAIL: LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll (5518 of 7763)
67> ******************** TEST 'LLVM :: Transforms/GlobalOpt/zeroinitializer-gep-load.ll' FAILED ********************
67> Script:
67> --
67> W:/LLVM_org/build64/bin/Debug/opt.EXE <
2013 Apr 29
0
[LLVMdev] Many tests fail on Win64
...day myself with lots of asserts being thrown.
>
> I think the issue is in lib/IR/AsmWriter.cpp:1618 in the function
> AssemblyWriter::printFunction(const Function *F)
>
> Looking at the code I think the 2nd for loop should be preceded by the test
> ...
>
> if (Idx < AS.getNumSlots())
>
> Not sure why it doesn't fail on other platforms as it looks like it should
> be a genuine issue on all platform.
>
> That change significantly reduced the failures on my Windows build.
>
> Keith
>
> -----Original Message-----
> From: llvmdev-bounces at cs.ui...
2013 Apr 29
0
[LLVMdev] Many tests fail on Win64
In a debug build you should get a stack trace by default, which would
be helpful here.
I can try to repro later today, but I'm not surprised there are issues
because most people I know stick with 32-bit builds even on 64-bit
Windows.
On Mon, Apr 29, 2013 at 4:27 AM, Demikhovsky, Elena
<elena.demikhovsky at intel.com> wrote:
> Hi,
>
>
>
> I check-out the latest version of
2017 Mar 20
4
[RFC] Attribute overhaul 2
LLVM's Attribute APIs need an overhaul.
Current problems
================
First, testing for an attribute on an Argument is slow.
llvm::AttributeSet::getAttributes(int) consumed 2% of cycles while
optimizing
llc during LTO. Our mid-level optimizations are constantly asking if a given
argument has some attribute (nonnull, dereferencable, etc), and this is
currently linear in the size of the