[LLVMdev] Tablegen bug???

Caldarale, Charles R Chuck.Caldarale at unisys.com
Thu Nov 29 19:27:34 PST 2012


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Chris Lattner
> Subject: Re: [LLVMdev] Tablegen bug???

> Out of curiosity, what is wrong about that?  It looks ok to me.

This:

> >   if (NameR.startswith("MDIL.barrier.")) return AMDILIntrinsic::AMDIL_barrier;

prevents the three following tests:

> >   if (NameR.startswith("MDIL.barrier.global.")) return AMDILIntrinsic::AMDIL_barrier_global;
> >   if (NameR.startswith("MDIL.barrier.local.")) return AMDILIntrinsic::AMDIL_barrier_local;
> >   if (NameR.startswith("MDIL.barrier.region.")) return AMDILIntrinsic::AMDIL_barrier_region;

from ever matching.  The order needs to be changed so the common substring is checked last.

 - Chuck



THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.





More information about the llvm-dev mailing list