Displaying 4 results from an estimated 4 matches for "a3g".
Did you mean:
a3
2011 Oct 01
1
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
...ed. Data[2] is then less than RHS.Data[2], so a12 < a1b. But in the case for a22 and a1b, we get the opposite, since '2'!='1', and 22 is more digits than 1. So we get a12 < a1b < a22, which is incorrect, because a12==a22.
My problem was with these registers: a23g, a2g and a3g. When I renamed a23g to aa23g, it worked. Since '2'=='2', the problem was that a23g<a2g.
I think the fix is to first check for two digits, and move the equality comparison to after this. Then a2g < a3g < a23g:
/// compare_numeric - Compare strings, handle embedded numbers...
2011 Sep 30
0
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
On Sep 30, 2011, at 8:29 AM, Jonas Paulsson wrote:
> The conclusion is that the StringRef::compare_numeric() is not deterministic
Thanks for tracking this down.
I believe we have a bug in compare_numeric() causing it to be non-transitive sometimes. It is supposed to provide a total ordering of strings. Can you find the bug?
/jakob
-------------- next part --------------
An HTML attachment
2011 Sep 30
3
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
Hi,
I just bumped into a bug in this code. The problem was as follows:
I have defined a set of registers with rather similar names including digits.
The code section at
RegisterInfoEmitter::run(){
...
// Process sub-register sets.
runs and fills the RegisterAliases map.
then,
...
for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
RegNo[Regs[i].TheDef] = i;
NumAliases +=
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...-SmxXUfmS
zEUL`--3ufL^y+74it4b at w-uWhg|!$q?W>g4T2LD|(u!yRCI|q}*DEv}5K3Kj)_9-l
zJojO*@274?o3j|Kfar0m_3F;`iXga05QVGKbyp>T#si_QgPhrVt&7esVUMlC?#jEH
z{U7$;JFLkr>l at t(gc3Rg=^ZISiVA`>LoW&>Arxt1p(-jEsx8us^dizbgpL%c8akrV
zQ9wYd6s3y2eF at LZ`DW%k-<)~Nyyuy7=8s(0ecjwQ_bzL%wSIfAwSGa3GhZXFWyF1+
z64yNDJSug+uHTF%FR{G}sT$QEGwIlWU5*iOM#e!D!ph?c0-jKri%TmV(c*n#gDFoo
zy9Q7Cq>#-2r4Tci46#(YWEKvyAk>Z%>PUz7NV3)p8rBR6z{i-csIip?v1aCeDX+Ei
zkbc at i*QKYLMbB#A_PvyDjlQN-A8^gqYN7mV7IKgP{rpEa<`fNkpr%TR0GYN$s~)^g
z{`CNe1sSU1b_$Oa^V&+aSx%n&<YfNbKG{qd!b&zqvR%>L0vDpYd36B&...