12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673 |
- //===- IntrinsicsNVVM.td - Defines NVVM intrinsics ---------*- tablegen -*-===//
- //
- // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
- // See https://llvm.org/LICENSE.txt for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- //
- //===----------------------------------------------------------------------===//
- //
- // This file defines all of the NVVM-specific intrinsics for use with NVPTX.
- //
- //===----------------------------------------------------------------------===//
- // The following intrinsics were once defined here, but are now auto-upgraded
- // to target-generic LLVM intrinsics.
- //
- // * llvm.nvvm.brev32 --> llvm.bitreverse.i32
- // * llvm.nvvm.brev64 --> llvm.bitreverse.i64
- // * llvm.nvvm.clz.i --> llvm.ctlz.i32
- // * llvm.nvvm.clz.ll --> trunc i64 llvm.ctlz.i64(x) to i32
- // * llvm.nvvm.popc.i --> llvm.ctpop.i32
- // * llvm.nvvm.popc.ll --> trunc i64 llvm.ctpop.i64 to i32
- // * llvm.nvvm.abs.i --> select(x >= -x, x, -x)
- // * llvm.nvvm.abs.ll --> ibid.
- // * llvm.nvvm.max.i --> select(x sge y, x, y)
- // * llvm.nvvm.max.ll --> ibid.
- // * llvm.nvvm.max.ui --> select(x uge y, x, y)
- // * llvm.nvvm.max.ull --> ibid.
- // * llvm.nvvm.max.i --> select(x sle y, x, y)
- // * llvm.nvvm.max.ll --> ibid.
- // * llvm.nvvm.max.ui --> select(x ule y, x, y)
- // * llvm.nvvm.max.ull --> ibid.
- // * llvm.nvvm.h2f --> llvm.convert.to.fp16.f32
- def llvm_global_i8ptr_ty : LLVMQualPointerType<llvm_i8_ty, 1>; // (global)i8*
- def llvm_shared_i8ptr_ty : LLVMQualPointerType<llvm_i8_ty, 3>; // (shared)i8*
- def llvm_i64ptr_ty : LLVMPointerType<llvm_i64_ty>; // i64*
- def llvm_any_i64ptr_ty : LLVMAnyPointerType<llvm_i64_ty>; // (space)i64*
- def llvm_shared_i64ptr_ty : LLVMQualPointerType<llvm_i64_ty, 3>; // (shared)i64*
- //
- // MISC
- //
- // Helper class that represents a 'fragment' of an NVPTX *MMA instruction.
- // Geom: m<M>n<N>k<K>. E.g. m8n32k16
- // Frag: [a|b|c|d] ([x1|x2|x4] for ldmatrix)
- // PtxEltType: PTX type for the element.
- class WMMA_REGS<string Geom, string Frag, string PtxEltType> {
- string geom = Geom;
- string frag = Frag;
- string ptx_elt_type = PtxEltType;
- string gft = Geom#":"#Frag#":"#ptx_elt_type;
- string ft = frag#":"#ptx_elt_type;
- list<LLVMType> regs = !cond(
- // mma fp ops use smaller fragments than wmma fp ops
- !eq(gft,"m8n8k4:a:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m8n8k4:b:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k8:a:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k8:b:f16") : [llvm_v2f16_ty],
- !eq(gft,"m16n8k8:c:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k8:d:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k8:c:f32") : !listsplat(llvm_float_ty, 4),
- !eq(gft,"m16n8k8:d:f32") : !listsplat(llvm_float_ty, 4),
- !eq(gft,"m16n8k16:a:f16") : !listsplat(llvm_v2f16_ty, 4),
- !eq(gft,"m16n8k16:b:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k16:c:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k16:d:f16") : !listsplat(llvm_v2f16_ty, 2),
- !eq(gft,"m16n8k16:c:f32") : !listsplat(llvm_float_ty, 4),
- !eq(gft,"m16n8k16:d:f32") : !listsplat(llvm_float_ty, 4),
- !eq(gft,"m16n8k4:c:f32") : !listsplat(llvm_float_ty, 4),
- !eq(gft,"m16n8k4:d:f32") : !listsplat(llvm_float_ty, 4),
- // wmma fp16 -> fp16/fp32 @ m16n16k16/m8n32k16/m32n8k16
- // All other supported geometries use the same fragment format for f32 and
- // f16, so we only need to consider {fragment, type}.
- !eq(ft,"a:f16") : !listsplat(llvm_v2f16_ty, 8),
- !eq(ft,"b:f16") : !listsplat(llvm_v2f16_ty, 8),
- !eq(ft,"c:f16") : !listsplat(llvm_v2f16_ty, 4),
- !eq(ft,"d:f16") : !listsplat(llvm_v2f16_ty, 4),
- !eq(ft,"c:f32") : !listsplat(llvm_float_ty, 8),
- !eq(ft,"d:f32") : !listsplat(llvm_float_ty, 8),
- // wmma tf32 -> s32 @ m16n16k8
- !eq(gft,"m16n16k8:a:tf32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n16k8:b:tf32") : !listsplat(llvm_i32_ty, 4),
- // mma tf32 -> s32 @ m16n16k8/m16n8k8
- !eq(gft,"m16n8k4:a:tf32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k4:b:tf32") : [llvm_i32_ty],
- !eq(gft,"m16n8k8:a:tf32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k8:b:tf32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n8k4:a:f64") : [llvm_double_ty],
- !eq(gft,"m8n8k4:b:f64") : [llvm_double_ty],
- !eq(gft,"m8n8k4:c:f64") : !listsplat(llvm_double_ty, 2),
- !eq(gft,"m8n8k4:d:f64") : !listsplat(llvm_double_ty, 2),
- // wmma bf16 -> s32 @ m16n16k16/m8n32k16/m32n8k16
- !eq(gft,"m16n16k16:a:bf16") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n16k16:b:bf16") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m8n32k16:a:bf16") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n32k16:b:bf16") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m32n8k16:a:bf16") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m32n8k16:b:bf16") : !listsplat(llvm_i32_ty, 2),
- // mma bf16 -> s32 @ m16n8k16/m16n8k8
- !eq(gft,"m16n8k16:a:bf16") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k16:b:bf16") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k8:a:bf16") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k8:b:bf16") : [llvm_i32_ty],
- // wmma u8/s8 -> s32 @ m16n16k16/m8n32k16/m32n8k16
- !eq(gft,"m16n16k16:a:u8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n16k16:a:s8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n16k16:b:u8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n16k16:b:s8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n16k16:c:s32") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m16n16k16:d:s32") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m8n32k16:a:u8") : [llvm_i32_ty],
- !eq(gft,"m8n32k16:a:s8") : [llvm_i32_ty],
- !eq(gft,"m8n32k16:b:u8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m8n32k16:b:s8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m8n32k16:c:s32") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m8n32k16:d:s32") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m32n8k16:a:u8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m32n8k16:a:s8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m32n8k16:b:u8") : [llvm_i32_ty],
- !eq(gft,"m32n8k16:b:s8") : [llvm_i32_ty],
- !eq(gft,"m32n8k16:c:s32") : !listsplat(llvm_i32_ty, 8),
- !eq(gft,"m32n8k16:d:s32") : !listsplat(llvm_i32_ty, 8),
- // mma u8/s8 -> s32 @ m8n8k16/m16n8k16/m16n8k32
- !eq(gft,"m8n8k16:a:u8") : [llvm_i32_ty],
- !eq(gft,"m8n8k16:a:s8") : [llvm_i32_ty],
- !eq(gft,"m8n8k16:b:u8") : [llvm_i32_ty],
- !eq(gft,"m8n8k16:b:s8") : [llvm_i32_ty],
- !eq(gft,"m8n8k16:c:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n8k16:d:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k16:a:u8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k16:a:s8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k16:b:u8") : [llvm_i32_ty],
- !eq(gft,"m16n8k16:b:s8") : [llvm_i32_ty],
- !eq(gft,"m16n8k16:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k16:d:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k32:a:u8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k32:a:s8") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k32:b:u8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k32:b:s8") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k32:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k32:d:s32") : !listsplat(llvm_i32_ty, 4),
- // wmma/mma u4/s4 -> s32 @ m8n8k32 (u4/s4)
- !eq(gft,"m8n8k32:a:u4") : [llvm_i32_ty],
- !eq(gft,"m8n8k32:a:s4") : [llvm_i32_ty],
- !eq(gft,"m8n8k32:b:u4") : [llvm_i32_ty],
- !eq(gft,"m8n8k32:b:s4") : [llvm_i32_ty],
- !eq(gft,"m8n8k32:c:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n8k32:d:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k32:a:u4") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k32:a:s4") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k32:b:u4") : [llvm_i32_ty],
- !eq(gft,"m16n8k32:b:s4") : [llvm_i32_ty],
- !eq(gft,"m16n8k32:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k32:d:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k64:a:u4") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k64:a:s4") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k64:b:u4") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k64:b:s4") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k64:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k64:d:s32") : !listsplat(llvm_i32_ty, 4),
- // wmma/mma b1 -> s32 @ m8n8k128(b1)
- !eq(gft,"m8n8k128:a:b1") : [llvm_i32_ty],
- !eq(gft,"m8n8k128:b:b1") : [llvm_i32_ty],
- !eq(gft,"m8n8k128:c:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n8k128:d:s32") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k128:a:b1") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k128:b:b1") : [llvm_i32_ty],
- !eq(gft,"m16n8k128:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k128:d:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k256:a:b1") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k256:b:b1") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m16n8k256:c:s32") : !listsplat(llvm_i32_ty, 4),
- !eq(gft,"m16n8k256:d:s32") : !listsplat(llvm_i32_ty, 4),
- // ldmatrix b16 -> s32 @ m8n8
- !eq(gft,"m8n8:x1:b16") : !listsplat(llvm_i32_ty, 1),
- !eq(gft,"m8n8:x2:b16") : !listsplat(llvm_i32_ty, 2),
- !eq(gft,"m8n8:x4:b16") : !listsplat(llvm_i32_ty, 4),
- );
- }
- class WMMA_NAME_LDST<string Op, WMMA_REGS Frag, string Layout, int WithStride> {
- string intr = "llvm.nvvm.wmma."
- # Frag.geom
- # "." # Op
- # "." # Frag.frag
- # "." # Layout
- # !if(WithStride, ".stride", "")
- # "." # Frag.ptx_elt_type
- ;
- // TODO(tra): record name should ideally use the same field order as the intrinsic.
- // E.g. string record = !subst("llvm", "int",
- // !subst(".", "_", llvm));
- string record = "int_nvvm_wmma_"
- # Frag.geom
- # "_" # Op
- # "_" # Frag.frag
- # "_" # Frag.ptx_elt_type
- # "_" # Layout
- # !if(WithStride, "_stride", "");
- }
- class MMA_SIGNATURE<WMMA_REGS A, WMMA_REGS B, WMMA_REGS C, WMMA_REGS D> {
- list<WMMA_REGS> id_frags = !cond(
- // FP16 ops are identified by accumulator & result type.
- !eq(A.ptx_elt_type, "f16") : [D, C],
- // other ops are identified by input types.
- !ne(A.ptx_elt_type, B.ptx_elt_type): [A, B],
- true: [A]
- );
- string ret = !foldl("", id_frags, a, b, !strconcat(a, ".", b.ptx_elt_type));
- }
- class WMMA_NAME<string ALayout, string BLayout, int Satfinite, string Rnd, string b1op,
- WMMA_REGS A, WMMA_REGS B, WMMA_REGS C, WMMA_REGS D> {
- string signature = MMA_SIGNATURE<A, B, C, D>.ret;
- string llvm = "llvm.nvvm.wmma."
- # A.geom
- # ".mma"
- # b1op
- # "." # ALayout
- # "." # BLayout
- # !if(!ne(Rnd, ""), !strconcat(".", Rnd), "")
- # signature
- # !if(Satfinite, ".satfinite", "");
- string record = !subst(".", "_",
- !subst("llvm.", "int_", llvm));
- }
- class MMA_NAME<string ALayout, string BLayout, int Satfinite, string b1op,
- WMMA_REGS A, WMMA_REGS B, WMMA_REGS C, WMMA_REGS D> {
- string signature = MMA_SIGNATURE<A, B, C, D>.ret;
- string llvm = "llvm.nvvm.mma"
- # b1op
- # "." # A.geom
- # "." # ALayout
- # "." # BLayout
- # !if(Satfinite, ".satfinite", "")
- # signature;
- string record = !subst(".", "_",
- !subst("llvm.", "int_", llvm));
- }
- class LDMATRIX_NAME<WMMA_REGS Frag, int Trans> {
- string intr = "llvm.nvvm.ldmatrix.sync.aligned"
- # "." # Frag.geom
- # "." # Frag.frag
- # !if(Trans, ".trans", "")
- # "." # Frag.ptx_elt_type
- ;
- string record = !subst(".", "_",
- !subst("llvm.", "int_", intr));
- }
- // Generates list of 4-tuples of WMMA_REGS representing a valid MMA op.
- // Geom: list of supported geometries.
- // TypeN: PTX type of the corresponding fragment's element.
- // TypeB and TypeD may be empty if it must match that of TypeA or TypeC.
- class MMA_OPS<list<string> Geom, list<string> TypeA, list<string> TypeB,
- list<string> TypeC, list<string> TypeD> {
- list<list<WMMA_REGS>> ret =
- !foldl([]<list<WMMA_REGS>>, Geom, t1, geom, !listconcat(t1,
- !foldl([]<list<WMMA_REGS>>, TypeA, t2, type_a, !listconcat(t2,
- !foldl([]<list<WMMA_REGS>>, !if(!size(TypeB), TypeB, [type_a]), t3, type_b, !listconcat(t3,
- !foldl([]<list<WMMA_REGS>>, TypeC, t4, type_c, !listconcat(t4,
- !foldl([]<list<WMMA_REGS>>, !if(!size(TypeD), TypeD, [type_c]), t5, type_d, !listconcat(t5,
- [[WMMA_REGS<geom, "a", type_a>,
- WMMA_REGS<geom, "b", type_b>,
- WMMA_REGS<geom, "c", type_c>,
- WMMA_REGS<geom, "d", type_d>]]))))))))));
- // Debugging aid for readable representation of the list above.
- list<list<string>> ops = !foreach(x, ret, [x[0].gft, x[1].gft, x[2].gft, x[3].gft]);
- }
- class MMA_LDST_OPS<list<string> Geom, list<string> Frags, list<string> Types> {
- list<WMMA_REGS> ret =
- !foldl([]<WMMA_REGS>, Geom, t1, geom, !listconcat(t1,
- !foldl([]<WMMA_REGS>, Frags, t2, frag, !listconcat(t2,
- !foldl([]<WMMA_REGS>, Types, t3, type, !listconcat(t3,
- [WMMA_REGS<geom, frag, type>]))))));
- // Debugging aid for readable representation of the list above.
- list<string> ops = !foreach(x, ret, x.gft);
- }
- class LDMATRIX_OPS<list<string> Geom, list<string> Frags, list<string> Types> {
- list<WMMA_REGS> ret =
- !foldl([]<WMMA_REGS>, Geom, t1, geom, !listconcat(t1,
- !foldl([]<WMMA_REGS>, Frags, t2, frag, !listconcat(t2,
- !foldl([]<WMMA_REGS>, Types, t3, type, !listconcat(t3,
- [WMMA_REGS<geom, frag, type>]))))));
- // Debugging aid for readable representation of the list above.
- list<string> ops = !foreach(x, ret, x.gft);
- }
- // Creates list of valid combinations of fragments. This is the main list that
- // drives generation of corresponding intrinsics and instructions.
- class NVVM_MMA_OPS {
- list<list<WMMA_REGS>> tf32_wmma_ops = MMA_OPS<
- ["m16n16k8"],
- ["tf32"], [], ["f32"], []>.ret;
- list<list<WMMA_REGS>> bf16_wmma_ops = MMA_OPS<
- ["m16n16k16", "m32n8k16", "m8n32k16"],
- ["bf16"], [], ["f32"], []>.ret;
- list<list<WMMA_REGS>> f64_wmma_ops = MMA_OPS<
- ["m8n8k4"],
- ["f64"], [], ["f64"], []>.ret;
- list<list<WMMA_REGS>> fp_wmma_ops = MMA_OPS<
- ["m16n16k16", "m32n8k16", "m8n32k16"],
- ["f16"], [], ["f16", "f32"], ["f16", "f32"]>.ret;
- list<list<WMMA_REGS>> int_wmma_ops = MMA_OPS<
- ["m16n16k16", "m32n8k16", "m8n32k16"],
- ["s8", "u8"], [], ["s32"], []>.ret;
- list<list<WMMA_REGS>> subint_wmma_ops = MMA_OPS<
- ["m8n8k32"],
- ["s4", "u4"], [], ["s32"], []>.ret;
- list<list<WMMA_REGS>> bit_wmma_ops = MMA_OPS<
- ["m8n8k128"],
- ["b1"], [], ["s32"], []>.ret;
- list<list<WMMA_REGS>> all_wmma_ops = !listconcat(
- tf32_wmma_ops, bf16_wmma_ops, f64_wmma_ops,
- fp_wmma_ops, int_wmma_ops, subint_wmma_ops, bit_wmma_ops);
- list<list<WMMA_REGS>> tf32_mma_ops = MMA_OPS<
- ["m16n8k4", "m16n8k8"],
- ["tf32"], [], ["f32"], []>.ret;
- list<list<WMMA_REGS>> bf16_mma_ops = MMA_OPS<
- ["m16n8k16", "m16n8k8"],
- ["bf16"], [], ["f32"], []>.ret;
- list<list<WMMA_REGS>> f64_mma_ops = MMA_OPS<
- ["m8n8k4"],
- ["f64"], [], ["f64"], []>.ret;
- list<list<WMMA_REGS>> fp_mma_ops = MMA_OPS<
- ["m8n8k4", "m16n8k8", "m16n8k16"],
- ["f16"], [], ["f16", "f32"], ["f16", "f32"]>.ret;
- list<list<WMMA_REGS>> int_mma_ops = MMA_OPS<
- ["m8n8k16", "m16n8k16", "m16n8k32"],
- ["s8", "u8"], ["s8", "u8"], ["s32"], []>.ret;
- list<list<WMMA_REGS>> subint_mma_ops = MMA_OPS<
- ["m8n8k32", "m16n8k32", "m16n8k64"],
- ["s4", "u4"], ["s4", "u4"], ["s32"], []>.ret;
- list<list<WMMA_REGS>> bit_mma_ops = MMA_OPS<
- ["m8n8k128", "m16n8k128", "m16n8k256"],
- ["b1"], [], ["s32"], []>.ret;
- list<list<WMMA_REGS>> all_mma_ops = !listconcat(
- tf32_mma_ops, bf16_mma_ops, f64_mma_ops,
- fp_mma_ops, int_mma_ops, subint_mma_ops, bit_mma_ops);
- list<WMMA_REGS> ldst_ab_ops = MMA_LDST_OPS<
- ["m16n16k16", "m32n8k16", "m8n32k16"],
- ["a", "b"], ["f16", "u8", "s8", "bf16"]>.ret;
- list<WMMA_REGS> ldst_cd_ops = MMA_LDST_OPS<
- ["m16n16k16", "m32n8k16", "m8n32k16"],
- ["c", "d"], ["f16", "f32", "s32"]>.ret;
- list<WMMA_REGS> ldst_tf32_ab_ops = MMA_LDST_OPS<
- ["m16n16k8"],
- ["a", "b"], ["tf32"]>.ret;
- list<WMMA_REGS> ldst_tf32_cd_ops = MMA_LDST_OPS<
- ["m16n16k8"],
- ["c", "d"], ["f32"]>.ret;
- list<WMMA_REGS> ldst_f64_abcd_ops = MMA_LDST_OPS<
- ["m8n8k4"],
- ["a", "b", "c", "d"], ["f64"]>.ret;
- list<WMMA_REGS> ldst_subint_ab_ops = MMA_LDST_OPS<
- ["m8n8k32"], ["a", "b"], ["s4","u4"]>.ret;
- list<WMMA_REGS> ldst_bit_ab_ops = MMA_LDST_OPS<
- ["m8n8k128"], ["a", "b"], ["b1"]>.ret;
- list<WMMA_REGS> ldst_subint_cd_ops = MMA_LDST_OPS<
- ["m8n8k32", "m8n8k128"], ["c", "d"], ["s32"]>.ret;
- list<WMMA_REGS> all_ldst_ops = !listconcat(ldst_ab_ops, ldst_cd_ops,
- ldst_tf32_ab_ops,
- ldst_tf32_cd_ops,
- ldst_f64_abcd_ops,
- ldst_subint_ab_ops,
- ldst_bit_ab_ops,
- ldst_subint_cd_ops);
- // Separate A/B/C fragments (loads) from D (stores).
- list<WMMA_REGS> all_ld_ops = !filter(op, all_ldst_ops, !ne(op.frag, "d"));
- list<WMMA_REGS> all_st_ops = !filter(op, all_ldst_ops, !eq(op.frag, "d"));
- list<WMMA_REGS> ldmatrix_b16_ops = LDMATRIX_OPS<
- ["m8n8"], ["x1", "x2", "x4"], ["b16"]>.ret;
- list<WMMA_REGS> all_ldmatrix_ops = ldmatrix_b16_ops;
- }
- def NVVM_MMA_OPS : NVVM_MMA_OPS;
- // Returns true if this combination of fragment and layout for WMMA load/store
- // ops is supported; false otherwise.
- // E.g.
- // if NVVM_WMMA_LDST_SUPPORTED<...>.ret then
- // def : FOO<>; // The record will only be defined for supported ops.
- //
- class NVVM_WMMA_LDST_SUPPORTED<WMMA_REGS frag, string layout> {
- string f = frag.frag;
- string t = frag.ptx_elt_type;
- bit ret = !cond(
- // Sub-int load and store requires A fragment to be of row layout and B
- // fragments to be of column layout.
- !and(!or(!eq(t, "b1"),
- !eq(t, "u4"),
- !eq(t, "s4")),
- !or(!and(!eq(f, "a"),
- !ne(layout, "row")),
- !and(!eq(f, "b"),
- !ne(layout, "col")))) : false,
- true: true
- );
- }
- // Returns true if this combination of layout/satf/rnd for WMMA ops is
- // supported; false otherwise.
- // E.g.
- // if NVVM_WMMA_SUPPORTED<...>.ret then
- // def : FOO<>; // The record will only be defined for supported ops.
- //
- class NVVM_WMMA_SUPPORTED<list<WMMA_REGS> frags, string layout_a, string layout_b, int satf, string rnd> {
- // WMMA ops check both layouts.
- string layout = layout_a # ":" # layout_b;
- string t = frags[0].ptx_elt_type;
- bit ret = !cond(
- // only f64 wmma functions support rnd options
- // any non f64 type that uses a rnd value is invalid
- !and(!ne(t, "f64"), !ne(rnd, "")) : false,
- // satf is only valid for select types
- !and(!eq(satf, 1),
- !ne(t, "s8"),
- !ne(t, "u8"),
- !ne(t, "s4"),
- !ne(t, "u4"),
- !ne(t, "f16")): false,
- // Sub-int wmma requires row/column layout
- !and(!or(!eq(t, "s4"),
- !eq(t, "u4"),
- !eq(t, "b1")),
- !ne(layout, "row:col")) : false,
- true: true
- );
- }
- class NVVM_MMA_B1OPS<list<WMMA_REGS> frags> {
- list<string> ret = !cond(
- !eq(frags[0].ptx_elt_type, "b1") : [".xor.popc", ".and.popc"],
- true: [""]
- );
- }
- // Returns true if this combination of layout/satf for MMA ops is supported;
- // false otherwise.
- // E.g.
- // if NVVM_MMA_SUPPORTED<...>.ret then
- // def : FOO<>; // The record will only be defined for supported ops.
- //
- class NVVM_MMA_SUPPORTED<list<WMMA_REGS> frags, string layout_a, string layout_b, int satf> {
- // MMA ops check both layouts.
- string layout = layout_a # ":" # layout_b;
- string a_type = frags[0].ptx_elt_type;
- string b_type = frags[1].ptx_elt_type;
- string c_type = frags[2].ptx_elt_type;
- string d_type = frags[3].ptx_elt_type;
- string geom = frags[0].geom;
- // gcd is a shortcut used to identify instructions that depend on
- // geom+frag_c+frag_d.
- string gcd = geom # ":" # c_type # d_type;
- bit ret = !cond(
- // Limit satf to valid types
- !and(!eq(satf, 1),
- !ne(a_type, "s8"),
- !ne(a_type, "u8"),
- !ne(a_type, "s4"),
- !ne(a_type, "u4")): false,
- // m8n8k4 has no C=f32 D=f16 variant.
- !eq(gcd, "m8n8k4:f32f16"): false,
- // only m8n8k4 for f16 does not require row:col layout
- !and(!ne(layout, "row:col"),
- !or(!ne(geom, "m8n8k4"),
- !ne(a_type, "f16"))) : false,
- // m16n8k8 requires A and B to be the same type and C and D to be the same
- // type.
- !and(!eq(geom, "m16n8k8"),
- !or(!ne(a_type, b_type),
- !ne(c_type, d_type))): false,
- // m16n8k8 requires C and D to be the same type.
- !and(!eq(geom, "m16n8k8"),
- !ne(c_type, d_type)): false,
- // All other are OK.
- true: true
- );
- }
- // Returns true if the fragment is valid for ldmatrix ops is supported;
- // false otherwise.
- // E.g.
- // if NVVM_LDMATRIX_SUPPORTED<...>.ret then
- // def : FOO<>; // The record will only be defined for supported ops.
- //
- class NVVM_LDMATRIX_SUPPORTED<WMMA_REGS frag> {
- string g = frag.geom;
- string t = frag.ptx_elt_type;
- bit ret = !cond(
- // Only currently support m8n8 and b16
- !and(!eq(g, "m8n8"), !eq(t, "b16")): true,
- true: false
- );
- }
- class SHFL_INFO<bit sync, string mode, string type, bit return_pred> {
- string Suffix = !if(sync, "sync_", "")
- # mode # "_"
- # type
- # !if(return_pred, "p", "");
- string Name = "int_nvvm_shfl_" # Suffix;
- string Builtin = "__nvvm_shfl_" # Suffix;
- string IntrName = "llvm.nvvm.shfl." # !subst("_",".", Suffix);
- bit withGccBuiltin = !not(return_pred);
- bit withoutGccBuiltin = return_pred;
- LLVMType OpType = !cond(
- !eq(type,"i32"): llvm_i32_ty,
- !eq(type,"f32"): llvm_float_ty);
- list<LLVMType> RetTy = !if(return_pred, [OpType, llvm_i1_ty], [OpType]);
- list<LLVMType> ArgsTy = !if(sync,
- [llvm_i32_ty, OpType, llvm_i32_ty, llvm_i32_ty],
- [OpType, llvm_i32_ty, llvm_i32_ty]);
- }
- let TargetPrefix = "nvvm" in {
- def int_nvvm_prmt : ClangBuiltin<"__nvvm_prmt">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable]>;
- //
- // Min Max
- //
- foreach operation = ["min", "max"] in {
- def int_nvvm_f # operation # _d :
- ClangBuiltin<!strconcat("__nvvm_f", operation, "_d")>,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- foreach variant = ["_f", "_ftz_f", "_nan_f", "_ftz_nan_f",
- "_xorsign_abs_f", "_ftz_xorsign_abs_f", "_nan_xorsign_abs_f",
- "_ftz_nan_xorsign_abs_f"] in {
- def int_nvvm_f # operation # variant :
- ClangBuiltin<!strconcat("__nvvm_f", operation, variant)>,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- }
- foreach variant = ["_f16", "_ftz_f16", "_nan_f16", "_ftz_nan_f16",
- "_xorsign_abs_f16", "_ftz_xorsign_abs_f16", "_nan_xorsign_abs_f16",
- "_ftz_nan_xorsign_abs_f16"] in {
- def int_nvvm_f # operation # variant :
- ClangBuiltin<!strconcat("__nvvm_f", operation, variant)>,
- DefaultAttrsIntrinsic<[llvm_half_ty], [llvm_half_ty, llvm_half_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- }
- foreach variant = ["_f16x2", "_ftz_f16x2", "_nan_f16x2",
- "_ftz_nan_f16x2", "_xorsign_abs_f16x2", "_ftz_xorsign_abs_f16x2",
- "_nan_xorsign_abs_f16x2", "_ftz_nan_xorsign_abs_f16x2"] in {
- def int_nvvm_f # operation # variant :
- ClangBuiltin<!strconcat("__nvvm_f", operation, variant)>,
- DefaultAttrsIntrinsic<[llvm_v2f16_ty], [llvm_v2f16_ty, llvm_v2f16_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- }
- foreach variant = ["_bf16", "_nan_bf16", "_xorsign_abs_bf16",
- "_nan_xorsign_abs_bf16"] in {
- def int_nvvm_f # operation # variant :
- ClangBuiltin<!strconcat("__nvvm_f", operation, variant)>,
- DefaultAttrsIntrinsic<[llvm_i16_ty], [llvm_i16_ty, llvm_i16_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- }
- foreach variant = ["_bf16x2", "_nan_bf16x2", "_xorsign_abs_bf16x2",
- "_nan_xorsign_abs_bf16x2"] in {
- def int_nvvm_f # operation # variant :
- ClangBuiltin<!strconcat("__nvvm_f", operation, variant)>,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- }
- }
- //
- // Multiplication
- //
- def int_nvvm_mulhi_i : ClangBuiltin<"__nvvm_mulhi_i">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mulhi_ui : ClangBuiltin<"__nvvm_mulhi_ui">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mulhi_ll : ClangBuiltin<"__nvvm_mulhi_ll">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i64_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mulhi_ull : ClangBuiltin<"__nvvm_mulhi_ull">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i64_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rn_ftz_f : ClangBuiltin<"__nvvm_mul_rn_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rn_f : ClangBuiltin<"__nvvm_mul_rn_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rz_ftz_f : ClangBuiltin<"__nvvm_mul_rz_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rz_f : ClangBuiltin<"__nvvm_mul_rz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rm_ftz_f : ClangBuiltin<"__nvvm_mul_rm_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rm_f : ClangBuiltin<"__nvvm_mul_rm_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rp_ftz_f : ClangBuiltin<"__nvvm_mul_rp_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rp_f : ClangBuiltin<"__nvvm_mul_rp_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rn_d : ClangBuiltin<"__nvvm_mul_rn_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rz_d : ClangBuiltin<"__nvvm_mul_rz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rm_d : ClangBuiltin<"__nvvm_mul_rm_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul_rp_d : ClangBuiltin<"__nvvm_mul_rp_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul24_i : ClangBuiltin<"__nvvm_mul24_i">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_mul24_ui : ClangBuiltin<"__nvvm_mul24_ui">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- //
- // Div
- //
- def int_nvvm_div_approx_ftz_f : ClangBuiltin<"__nvvm_div_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_approx_f : ClangBuiltin<"__nvvm_div_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rn_ftz_f : ClangBuiltin<"__nvvm_div_rn_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rn_f : ClangBuiltin<"__nvvm_div_rn_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rz_ftz_f : ClangBuiltin<"__nvvm_div_rz_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rz_f : ClangBuiltin<"__nvvm_div_rz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rm_ftz_f : ClangBuiltin<"__nvvm_div_rm_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rm_f : ClangBuiltin<"__nvvm_div_rm_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rp_ftz_f : ClangBuiltin<"__nvvm_div_rp_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rp_f : ClangBuiltin<"__nvvm_div_rp_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rn_d : ClangBuiltin<"__nvvm_div_rn_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rz_d : ClangBuiltin<"__nvvm_div_rz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rm_d : ClangBuiltin<"__nvvm_div_rm_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem]>;
- def int_nvvm_div_rp_d : ClangBuiltin<"__nvvm_div_rp_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem]>;
- //
- // Sad
- //
- def int_nvvm_sad_i : ClangBuiltin<"__nvvm_sad_i">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, Commutative]>;
- def int_nvvm_sad_ui : ClangBuiltin<"__nvvm_sad_ui">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, Commutative]>;
- //
- // Floor Ceil
- //
- def int_nvvm_floor_ftz_f : ClangBuiltin<"__nvvm_floor_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_floor_f : ClangBuiltin<"__nvvm_floor_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_floor_d : ClangBuiltin<"__nvvm_floor_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ceil_ftz_f : ClangBuiltin<"__nvvm_ceil_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ceil_f : ClangBuiltin<"__nvvm_ceil_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ceil_d : ClangBuiltin<"__nvvm_ceil_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- //
- // Abs
- //
- def int_nvvm_fabs_ftz_f : ClangBuiltin<"__nvvm_fabs_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_fabs_f : ClangBuiltin<"__nvvm_fabs_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_fabs_d : ClangBuiltin<"__nvvm_fabs_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- //
- // Abs, Neg bf16, bf16x2
- //
- foreach unary = ["abs", "neg"] in {
- def int_nvvm_ # unary # _bf16 :
- ClangBuiltin<!strconcat("__nvvm_", unary, "_bf16")>,
- DefaultAttrsIntrinsic<[llvm_i16_ty], [llvm_i16_ty], [IntrNoMem]>;
- def int_nvvm_ # unary # _bf16x2 :
- ClangBuiltin<!strconcat("__nvvm_", unary, "_bf16x2")>,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
- }
- //
- // Round
- //
- def int_nvvm_round_ftz_f : ClangBuiltin<"__nvvm_round_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_round_f : ClangBuiltin<"__nvvm_round_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_round_d : ClangBuiltin<"__nvvm_round_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- //
- // Trunc
- //
- def int_nvvm_trunc_ftz_f : ClangBuiltin<"__nvvm_trunc_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_trunc_f : ClangBuiltin<"__nvvm_trunc_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_trunc_d : ClangBuiltin<"__nvvm_trunc_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- //
- // Saturate
- //
- def int_nvvm_saturate_ftz_f : ClangBuiltin<"__nvvm_saturate_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_saturate_f : ClangBuiltin<"__nvvm_saturate_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_saturate_d : ClangBuiltin<"__nvvm_saturate_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- //
- // Exp2 Log2
- //
- def int_nvvm_ex2_approx_ftz_f : ClangBuiltin<"__nvvm_ex2_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_ex2_approx_f : ClangBuiltin<"__nvvm_ex2_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_ex2_approx_d : ClangBuiltin<"__nvvm_ex2_approx_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_ex2_approx_f16 : ClangBuiltin<"__nvvm_ex2_approx_f16">,
- DefaultAttrsIntrinsic<[llvm_half_ty], [llvm_half_ty], [IntrNoMem]>;
- def int_nvvm_ex2_approx_f16x2 : ClangBuiltin<"__nvvm_ex2_approx_f16x2">,
- DefaultAttrsIntrinsic<[llvm_v2f16_ty], [llvm_v2f16_ty], [IntrNoMem]>;
- def int_nvvm_lg2_approx_ftz_f : ClangBuiltin<"__nvvm_lg2_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_lg2_approx_f : ClangBuiltin<"__nvvm_lg2_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_lg2_approx_d : ClangBuiltin<"__nvvm_lg2_approx_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- //
- // Sin Cos
- //
- def int_nvvm_sin_approx_ftz_f : ClangBuiltin<"__nvvm_sin_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sin_approx_f : ClangBuiltin<"__nvvm_sin_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_cos_approx_ftz_f : ClangBuiltin<"__nvvm_cos_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_cos_approx_f : ClangBuiltin<"__nvvm_cos_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- //
- // Fma
- //
- foreach variant = ["_rn_f16", "_rn_ftz_f16", "_rn_sat_f16",
- "_rn_ftz_sat_f16", "_rn_relu_f16", "_rn_ftz_relu_f16"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_half_ty],
- [llvm_half_ty, llvm_half_ty, llvm_half_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- foreach variant = ["_rn_f16x2", "_rn_ftz_f16x2", "_rn_sat_f16x2",
- "_rn_ftz_sat_f16x2", "_rn_relu_f16x2", "_rn_ftz_relu_f16x2"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_v2f16_ty],
- [llvm_v2f16_ty, llvm_v2f16_ty, llvm_v2f16_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- foreach variant = ["_rn_bf16", "_rn_relu_bf16"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_i16_ty],
- [llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- foreach variant = ["_rn_bf16x2", "_rn_relu_bf16x2"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_i32_ty],
- [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- foreach variant = ["_rn_ftz_f", "_rn_f", "_rz_ftz_f", "_rz_f", "_rm_ftz_f",
- "_rm_f", "_rp_ftz_f", "_rp_f"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_float_ty],
- [llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- foreach variant = ["_rn_d", "_rz_d", "_rm_d", "_rp_d"] in {
- def int_nvvm_fma # variant : ClangBuiltin<!strconcat("__nvvm_fma", variant)>,
- DefaultAttrsIntrinsic<[llvm_double_ty],
- [llvm_double_ty, llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable]>;
- }
- //
- // Rcp
- //
- def int_nvvm_rcp_rn_ftz_f : ClangBuiltin<"__nvvm_rcp_rn_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rn_f : ClangBuiltin<"__nvvm_rcp_rn_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rz_ftz_f : ClangBuiltin<"__nvvm_rcp_rz_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rz_f : ClangBuiltin<"__nvvm_rcp_rz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rm_ftz_f : ClangBuiltin<"__nvvm_rcp_rm_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rm_f : ClangBuiltin<"__nvvm_rcp_rm_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rp_ftz_f : ClangBuiltin<"__nvvm_rcp_rp_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rp_f : ClangBuiltin<"__nvvm_rcp_rp_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rn_d : ClangBuiltin<"__nvvm_rcp_rn_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rz_d : ClangBuiltin<"__nvvm_rcp_rz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rm_d : ClangBuiltin<"__nvvm_rcp_rm_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_rcp_rp_d : ClangBuiltin<"__nvvm_rcp_rp_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_rcp_approx_ftz_f : ClangBuiltin<"__nvvm_rcp_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rcp_approx_ftz_d : ClangBuiltin<"__nvvm_rcp_approx_ftz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- //
- // Sqrt
- //
- def int_nvvm_sqrt_f : ClangBuiltin<"__nvvm_sqrt_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rn_ftz_f : ClangBuiltin<"__nvvm_sqrt_rn_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rn_f : ClangBuiltin<"__nvvm_sqrt_rn_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rz_ftz_f : ClangBuiltin<"__nvvm_sqrt_rz_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rz_f : ClangBuiltin<"__nvvm_sqrt_rz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rm_ftz_f : ClangBuiltin<"__nvvm_sqrt_rm_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rm_f : ClangBuiltin<"__nvvm_sqrt_rm_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rp_ftz_f : ClangBuiltin<"__nvvm_sqrt_rp_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rp_f : ClangBuiltin<"__nvvm_sqrt_rp_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_approx_ftz_f : ClangBuiltin<"__nvvm_sqrt_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_approx_f : ClangBuiltin<"__nvvm_sqrt_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rn_d : ClangBuiltin<"__nvvm_sqrt_rn_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rz_d : ClangBuiltin<"__nvvm_sqrt_rz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rm_d : ClangBuiltin<"__nvvm_sqrt_rm_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- def int_nvvm_sqrt_rp_d : ClangBuiltin<"__nvvm_sqrt_rp_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- //
- // Rsqrt
- //
- def int_nvvm_rsqrt_approx_ftz_f : ClangBuiltin<"__nvvm_rsqrt_approx_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rsqrt_approx_f : ClangBuiltin<"__nvvm_rsqrt_approx_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_rsqrt_approx_d : ClangBuiltin<"__nvvm_rsqrt_approx_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty], [IntrNoMem]>;
- //
- // Add
- //
- def int_nvvm_add_rn_ftz_f : ClangBuiltin<"__nvvm_add_rn_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rn_f : ClangBuiltin<"__nvvm_add_rn_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rz_ftz_f : ClangBuiltin<"__nvvm_add_rz_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rz_f : ClangBuiltin<"__nvvm_add_rz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rm_ftz_f : ClangBuiltin<"__nvvm_add_rm_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rm_f : ClangBuiltin<"__nvvm_add_rm_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rp_ftz_f : ClangBuiltin<"__nvvm_add_rp_ftz_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rp_f : ClangBuiltin<"__nvvm_add_rp_f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rn_d : ClangBuiltin<"__nvvm_add_rn_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rz_d : ClangBuiltin<"__nvvm_add_rz_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rm_d : ClangBuiltin<"__nvvm_add_rm_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_add_rp_d : ClangBuiltin<"__nvvm_add_rp_d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_double_ty, llvm_double_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- //
- // Convert
- //
- def int_nvvm_d2f_rn_ftz : ClangBuiltin<"__nvvm_d2f_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rn : ClangBuiltin<"__nvvm_d2f_rn">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rz_ftz : ClangBuiltin<"__nvvm_d2f_rz_ftz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rz : ClangBuiltin<"__nvvm_d2f_rz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rm_ftz : ClangBuiltin<"__nvvm_d2f_rm_ftz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rm : ClangBuiltin<"__nvvm_d2f_rm">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rp_ftz : ClangBuiltin<"__nvvm_d2f_rp_ftz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2f_rp : ClangBuiltin<"__nvvm_d2f_rp">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2i_rn : ClangBuiltin<"__nvvm_d2i_rn">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2i_rz : ClangBuiltin<"__nvvm_d2i_rz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2i_rm : ClangBuiltin<"__nvvm_d2i_rm">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2i_rp : ClangBuiltin<"__nvvm_d2i_rp">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ui_rn : ClangBuiltin<"__nvvm_d2ui_rn">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ui_rz : ClangBuiltin<"__nvvm_d2ui_rz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ui_rm : ClangBuiltin<"__nvvm_d2ui_rm">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ui_rp : ClangBuiltin<"__nvvm_d2ui_rp">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2d_rn : ClangBuiltin<"__nvvm_i2d_rn">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2d_rz : ClangBuiltin<"__nvvm_i2d_rz">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2d_rm : ClangBuiltin<"__nvvm_i2d_rm">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2d_rp : ClangBuiltin<"__nvvm_i2d_rp">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2d_rn : ClangBuiltin<"__nvvm_ui2d_rn">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2d_rz : ClangBuiltin<"__nvvm_ui2d_rz">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2d_rm : ClangBuiltin<"__nvvm_ui2d_rm">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2d_rp : ClangBuiltin<"__nvvm_ui2d_rp">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rn_ftz : ClangBuiltin<"__nvvm_f2i_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rn : ClangBuiltin<"__nvvm_f2i_rn">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rz_ftz : ClangBuiltin<"__nvvm_f2i_rz_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rz : ClangBuiltin<"__nvvm_f2i_rz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rm_ftz : ClangBuiltin<"__nvvm_f2i_rm_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rm : ClangBuiltin<"__nvvm_f2i_rm">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rp_ftz : ClangBuiltin<"__nvvm_f2i_rp_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2i_rp : ClangBuiltin<"__nvvm_f2i_rp">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rn_ftz : ClangBuiltin<"__nvvm_f2ui_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rn : ClangBuiltin<"__nvvm_f2ui_rn">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rz_ftz : ClangBuiltin<"__nvvm_f2ui_rz_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rz : ClangBuiltin<"__nvvm_f2ui_rz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rm_ftz : ClangBuiltin<"__nvvm_f2ui_rm_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rm : ClangBuiltin<"__nvvm_f2ui_rm">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rp_ftz : ClangBuiltin<"__nvvm_f2ui_rp_ftz">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ui_rp : ClangBuiltin<"__nvvm_f2ui_rp">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2f_rn : ClangBuiltin<"__nvvm_i2f_rn">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2f_rz : ClangBuiltin<"__nvvm_i2f_rz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2f_rm : ClangBuiltin<"__nvvm_i2f_rm">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_i2f_rp : ClangBuiltin<"__nvvm_i2f_rp">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2f_rn : ClangBuiltin<"__nvvm_ui2f_rn">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2f_rz : ClangBuiltin<"__nvvm_ui2f_rz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2f_rm : ClangBuiltin<"__nvvm_ui2f_rm">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ui2f_rp : ClangBuiltin<"__nvvm_ui2f_rp">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_lohi_i2d : ClangBuiltin<"__nvvm_lohi_i2d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable, Commutative]>;
- def int_nvvm_d2i_lo : ClangBuiltin<"__nvvm_d2i_lo">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2i_hi : ClangBuiltin<"__nvvm_d2i_hi">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rn_ftz : ClangBuiltin<"__nvvm_f2ll_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rn : ClangBuiltin<"__nvvm_f2ll_rn">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rz_ftz : ClangBuiltin<"__nvvm_f2ll_rz_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rz : ClangBuiltin<"__nvvm_f2ll_rz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rm_ftz : ClangBuiltin<"__nvvm_f2ll_rm_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rm : ClangBuiltin<"__nvvm_f2ll_rm">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rp_ftz : ClangBuiltin<"__nvvm_f2ll_rp_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ll_rp : ClangBuiltin<"__nvvm_f2ll_rp">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rn_ftz : ClangBuiltin<"__nvvm_f2ull_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rn : ClangBuiltin<"__nvvm_f2ull_rn">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rz_ftz : ClangBuiltin<"__nvvm_f2ull_rz_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rz : ClangBuiltin<"__nvvm_f2ull_rz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rm_ftz : ClangBuiltin<"__nvvm_f2ull_rm_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rm : ClangBuiltin<"__nvvm_f2ull_rm">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rp_ftz : ClangBuiltin<"__nvvm_f2ull_rp_ftz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2ull_rp : ClangBuiltin<"__nvvm_f2ull_rp">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ll_rn : ClangBuiltin<"__nvvm_d2ll_rn">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ll_rz : ClangBuiltin<"__nvvm_d2ll_rz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ll_rm : ClangBuiltin<"__nvvm_d2ll_rm">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ll_rp : ClangBuiltin<"__nvvm_d2ll_rp">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ull_rn : ClangBuiltin<"__nvvm_d2ull_rn">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ull_rz : ClangBuiltin<"__nvvm_d2ull_rz">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ull_rm : ClangBuiltin<"__nvvm_d2ull_rm">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_d2ull_rp : ClangBuiltin<"__nvvm_d2ull_rp">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2f_rn : ClangBuiltin<"__nvvm_ll2f_rn">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2f_rz : ClangBuiltin<"__nvvm_ll2f_rz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2f_rm : ClangBuiltin<"__nvvm_ll2f_rm">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2f_rp : ClangBuiltin<"__nvvm_ll2f_rp">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2f_rn : ClangBuiltin<"__nvvm_ull2f_rn">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2f_rz : ClangBuiltin<"__nvvm_ull2f_rz">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2f_rm : ClangBuiltin<"__nvvm_ull2f_rm">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2f_rp : ClangBuiltin<"__nvvm_ull2f_rp">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2d_rn : ClangBuiltin<"__nvvm_ll2d_rn">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2d_rz : ClangBuiltin<"__nvvm_ll2d_rz">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2d_rm : ClangBuiltin<"__nvvm_ll2d_rm">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ll2d_rp : ClangBuiltin<"__nvvm_ll2d_rp">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2d_rn : ClangBuiltin<"__nvvm_ull2d_rn">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2d_rz : ClangBuiltin<"__nvvm_ull2d_rz">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2d_rm : ClangBuiltin<"__nvvm_ull2d_rm">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ull2d_rp : ClangBuiltin<"__nvvm_ull2d_rp">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2h_rn_ftz : ClangBuiltin<"__nvvm_f2h_rn_ftz">,
- DefaultAttrsIntrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_f2h_rn : ClangBuiltin<"__nvvm_f2h_rn">,
- DefaultAttrsIntrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_ff2bf16x2_rn : ClangBuiltin<"__nvvm_ff2bf16x2_rn">,
- Intrinsic<[llvm_i32_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2bf16x2_rn_relu : ClangBuiltin<"__nvvm_ff2bf16x2_rn_relu">,
- Intrinsic<[llvm_i32_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2bf16x2_rz : ClangBuiltin<"__nvvm_ff2bf16x2_rz">,
- Intrinsic<[llvm_i32_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2bf16x2_rz_relu : ClangBuiltin<"__nvvm_ff2bf16x2_rz_relu">,
- Intrinsic<[llvm_i32_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem]>;
- def int_nvvm_ff2f16x2_rn : ClangBuiltin<"__nvvm_ff2f16x2_rn">,
- Intrinsic<[llvm_v2f16_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2f16x2_rn_relu : ClangBuiltin<"__nvvm_ff2f16x2_rn_relu">,
- Intrinsic<[llvm_v2f16_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2f16x2_rz : ClangBuiltin<"__nvvm_ff2f16x2_rz">,
- Intrinsic<[llvm_v2f16_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_ff2f16x2_rz_relu : ClangBuiltin<"__nvvm_ff2f16x2_rz_relu">,
- Intrinsic<[llvm_v2f16_ty], [llvm_float_ty, llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_f2bf16_rn : ClangBuiltin<"__nvvm_f2bf16_rn">,
- Intrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_f2bf16_rn_relu : ClangBuiltin<"__nvvm_f2bf16_rn_relu">,
- Intrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_f2bf16_rz : ClangBuiltin<"__nvvm_f2bf16_rz">,
- Intrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_f2bf16_rz_relu : ClangBuiltin<"__nvvm_f2bf16_rz_relu">,
- Intrinsic<[llvm_i16_ty], [llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- def int_nvvm_f2tf32_rna : ClangBuiltin<"__nvvm_f2tf32_rna">,
- Intrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrNoCallback]>;
- //
- // Bitcast
- //
- def int_nvvm_bitcast_f2i : ClangBuiltin<"__nvvm_bitcast_f2i">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_float_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_bitcast_i2f : ClangBuiltin<"__nvvm_bitcast_i2f">,
- DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_i32_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_bitcast_ll2d : ClangBuiltin<"__nvvm_bitcast_ll2d">,
- DefaultAttrsIntrinsic<[llvm_double_ty], [llvm_i64_ty], [IntrNoMem, IntrSpeculatable]>;
- def int_nvvm_bitcast_d2ll : ClangBuiltin<"__nvvm_bitcast_d2ll">,
- DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_double_ty], [IntrNoMem, IntrSpeculatable]>;
- // FNS
- def int_nvvm_fns : ClangBuiltin<"__nvvm_fns">,
- DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem]>;
- // Atomics not available as llvm intrinsics.
- def int_nvvm_atomic_load_inc_32 : Intrinsic<[llvm_i32_ty],
- [LLVMAnyPointerType<llvm_i32_ty>, llvm_i32_ty],
- [IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>]>;
- def int_nvvm_atomic_load_dec_32 : Intrinsic<[llvm_i32_ty],
- [LLVMAnyPointerType<llvm_i32_ty>, llvm_i32_ty],
- [IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>]>;
- class SCOPED_ATOMIC2_impl<LLVMType elty>
- : Intrinsic<[elty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, LLVMMatchType<0>],
- [IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>]>;
- class SCOPED_ATOMIC3_impl<LLVMType elty>
- : Intrinsic<[elty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, LLVMMatchType<0>,
- LLVMMatchType<0>],
- [IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>]>;
- multiclass PTXAtomicWithScope2<LLVMType elty> {
- def _cta : SCOPED_ATOMIC2_impl<elty>;
- def _sys : SCOPED_ATOMIC2_impl<elty>;
- }
- multiclass PTXAtomicWithScope3<LLVMType elty> {
- def _cta : SCOPED_ATOMIC3_impl<elty>;
- def _sys : SCOPED_ATOMIC3_impl<elty>;
- }
- multiclass PTXAtomicWithScope2_fi {
- defm _f: PTXAtomicWithScope2<llvm_anyfloat_ty>;
- defm _i: PTXAtomicWithScope2<llvm_anyint_ty>;
- }
- defm int_nvvm_atomic_add_gen : PTXAtomicWithScope2_fi;
- defm int_nvvm_atomic_inc_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_dec_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_exch_gen_i: PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_xor_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_max_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_min_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_or_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_and_gen_i : PTXAtomicWithScope2<llvm_anyint_ty>;
- defm int_nvvm_atomic_cas_gen_i : PTXAtomicWithScope3<llvm_anyint_ty>;
- // Bar.Sync
- // The builtin for "bar.sync 0" is called __syncthreads. Unlike most of the
- // intrinsics in this file, this one is a user-facing API.
- def int_nvvm_barrier0 : ClangBuiltin<"__syncthreads">,
- Intrinsic<[], [], [IntrConvergent, IntrNoCallback]>;
- // Synchronize all threads in the CTA at barrier 'n'.
- def int_nvvm_barrier_n : ClangBuiltin<"__nvvm_bar_n">,
- Intrinsic<[], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>;
- // Synchronize 'm', a multiple of warp size, (arg 2) threads in
- // the CTA at barrier 'n' (arg 1).
- def int_nvvm_barrier : ClangBuiltin<"__nvvm_bar">,
- Intrinsic<[], [llvm_i32_ty, llvm_i32_ty], [IntrConvergent, IntrNoCallback]>;
- def int_nvvm_barrier0_popc : ClangBuiltin<"__nvvm_bar0_popc">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>;
- def int_nvvm_barrier0_and : ClangBuiltin<"__nvvm_bar0_and">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>;
- def int_nvvm_barrier0_or : ClangBuiltin<"__nvvm_bar0_or">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>;
- def int_nvvm_bar_sync :
- Intrinsic<[], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_bar_sync">;
- def int_nvvm_bar_warp_sync :
- Intrinsic<[], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_bar_warp_sync">;
- // barrier.sync id[, cnt]
- def int_nvvm_barrier_sync :
- Intrinsic<[], [llvm_i32_ty], [IntrConvergent, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_barrier_sync">;
- def int_nvvm_barrier_sync_cnt :
- Intrinsic<[], [llvm_i32_ty, llvm_i32_ty], [IntrConvergent, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_barrier_sync_cnt">;
- // Membar
- def int_nvvm_membar_cta : ClangBuiltin<"__nvvm_membar_cta">,
- Intrinsic<[], [], [IntrNoCallback]>;
- def int_nvvm_membar_gl : ClangBuiltin<"__nvvm_membar_gl">,
- Intrinsic<[], [], [IntrNoCallback]>;
- def int_nvvm_membar_sys : ClangBuiltin<"__nvvm_membar_sys">,
- Intrinsic<[], [], [IntrNoCallback]>;
- // Async Copy
- def int_nvvm_cp_async_mbarrier_arrive :
- ClangBuiltin<"__nvvm_cp_async_mbarrier_arrive">,
- Intrinsic<[],[llvm_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_cp_async_mbarrier_arrive_shared :
- ClangBuiltin<"__nvvm_cp_async_mbarrier_arrive_shared">,
- Intrinsic<[],[llvm_shared_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_cp_async_mbarrier_arrive_noinc :
- ClangBuiltin<"__nvvm_cp_async_mbarrier_arrive_noinc">,
- Intrinsic<[],[llvm_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_cp_async_mbarrier_arrive_noinc_shared :
- ClangBuiltin<"__nvvm_cp_async_mbarrier_arrive_noinc_shared">,
- Intrinsic<[],[llvm_shared_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_cp_async_ca_shared_global_4 :
- ClangBuiltin<"__nvvm_cp_async_ca_shared_global_4">,
- Intrinsic<[],[llvm_shared_i8ptr_ty, llvm_global_i8ptr_ty],
- [IntrArgMemOnly, IntrNoCallback, NoAlias<ArgIndex<0>>, NoAlias<ArgIndex<1>>,
- WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>],
- "llvm.nvvm.cp.async.ca.shared.global.4">;
- def int_nvvm_cp_async_ca_shared_global_8 :
- ClangBuiltin<"__nvvm_cp_async_ca_shared_global_8">,
- Intrinsic<[],[llvm_shared_i8ptr_ty, llvm_global_i8ptr_ty],
- [IntrArgMemOnly, IntrNoCallback, NoAlias<ArgIndex<0>>, NoAlias<ArgIndex<1>>,
- WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>],
- "llvm.nvvm.cp.async.ca.shared.global.8">;
- def int_nvvm_cp_async_ca_shared_global_16 :
- ClangBuiltin<"__nvvm_cp_async_ca_shared_global_16">,
- Intrinsic<[],[llvm_shared_i8ptr_ty, llvm_global_i8ptr_ty],
- [IntrArgMemOnly, IntrNoCallback, NoAlias<ArgIndex<0>>, NoAlias<ArgIndex<1>>,
- WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>],
- "llvm.nvvm.cp.async.ca.shared.global.16">;
- def int_nvvm_cp_async_cg_shared_global_16 :
- ClangBuiltin<"__nvvm_cp_async_cg_shared_global_16">,
- Intrinsic<[],[llvm_shared_i8ptr_ty, llvm_global_i8ptr_ty],
- [IntrArgMemOnly, IntrNoCallback, NoAlias<ArgIndex<0>>, NoAlias<ArgIndex<1>>,
- WriteOnly<ArgIndex<0>>, ReadOnly<ArgIndex<1>>],
- "llvm.nvvm.cp.async.cg.shared.global.16">;
- def int_nvvm_cp_async_commit_group :
- ClangBuiltin<"__nvvm_cp_async_commit_group">,
- Intrinsic<[],[],[]>;
- def int_nvvm_cp_async_wait_group :
- ClangBuiltin<"__nvvm_cp_async_wait_group">,
- Intrinsic<[],[llvm_i32_ty],[ImmArg<ArgIndex<0>>]>;
- def int_nvvm_cp_async_wait_all :
- ClangBuiltin<"__nvvm_cp_async_wait_all">,
- Intrinsic<[],[],[]>;
- // mbarrier
- def int_nvvm_mbarrier_init : ClangBuiltin<"__nvvm_mbarrier_init">,
- Intrinsic<[],[llvm_i64ptr_ty, llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_init_shared :
- ClangBuiltin<"__nvvm_mbarrier_init_shared">,
- Intrinsic<[],[llvm_shared_i64ptr_ty, llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_inval : ClangBuiltin<"__nvvm_mbarrier_inval">,
- Intrinsic<[],[llvm_i64ptr_ty],
- [IntrConvergent, IntrWriteMem, IntrArgMemOnly, IntrNoCallback,
- WriteOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>]>;
- def int_nvvm_mbarrier_inval_shared :
- ClangBuiltin<"__nvvm_mbarrier_inval_shared">,
- Intrinsic<[],[llvm_shared_i64ptr_ty],
- [IntrConvergent, IntrWriteMem, IntrArgMemOnly, IntrNoCallback,
- WriteOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>]>;
- def int_nvvm_mbarrier_arrive : ClangBuiltin<"__nvvm_mbarrier_arrive">,
- Intrinsic<[llvm_i64_ty],[llvm_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_shared :
- ClangBuiltin<"__nvvm_mbarrier_arrive_shared">,
- Intrinsic<[llvm_i64_ty],[llvm_shared_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_noComplete :
- ClangBuiltin<"__nvvm_mbarrier_arrive_noComplete">,
- Intrinsic<[llvm_i64_ty],[llvm_i64ptr_ty, llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_noComplete_shared :
- ClangBuiltin<"__nvvm_mbarrier_arrive_noComplete_shared">,
- Intrinsic<[llvm_i64_ty],[llvm_shared_i64ptr_ty,
- llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_drop :
- ClangBuiltin<"__nvvm_mbarrier_arrive_drop">,
- Intrinsic<[llvm_i64_ty],[llvm_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_drop_shared :
- ClangBuiltin<"__nvvm_mbarrier_arrive_drop_shared">,
- Intrinsic<[llvm_i64_ty],[llvm_shared_i64ptr_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_drop_noComplete :
- ClangBuiltin<"__nvvm_mbarrier_arrive_drop_noComplete">,
- Intrinsic<[llvm_i64_ty],[llvm_i64ptr_ty, llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_arrive_drop_noComplete_shared :
- ClangBuiltin<"__nvvm_mbarrier_arrive_drop_noComplete_shared">,
- Intrinsic<[llvm_i64_ty],[llvm_shared_i64ptr_ty,
- llvm_i32_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_test_wait :
- ClangBuiltin<"__nvvm_mbarrier_test_wait">,
- Intrinsic<[llvm_i1_ty],[llvm_i64ptr_ty, llvm_i64_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_test_wait_shared :
- ClangBuiltin<"__nvvm_mbarrier_test_wait_shared">,
- Intrinsic<[llvm_i1_ty],[llvm_shared_i64ptr_ty, llvm_i64_ty],[IntrConvergent, IntrNoCallback]>;
- def int_nvvm_mbarrier_pending_count :
- ClangBuiltin<"__nvvm_mbarrier_pending_count">,
- Intrinsic<[llvm_i32_ty],[llvm_i64_ty],[IntrNoMem, IntrConvergent, IntrNoCallback]>;
- // Generated within nvvm. Use for ldu on sm_20 or later. Second arg is the
- // pointer's alignment.
- def int_nvvm_ldu_global_i : Intrinsic<[llvm_anyint_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldu.global.i">;
- def int_nvvm_ldu_global_f : Intrinsic<[llvm_anyfloat_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldu.global.f">;
- def int_nvvm_ldu_global_p : Intrinsic<[llvm_anyptr_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldu.global.p">;
- // Generated within nvvm. Use for ldg on sm_35 or later. Second arg is the
- // pointer's alignment.
- def int_nvvm_ldg_global_i : Intrinsic<[llvm_anyint_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldg.global.i">;
- def int_nvvm_ldg_global_f : Intrinsic<[llvm_anyfloat_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldg.global.f">;
- def int_nvvm_ldg_global_p : Intrinsic<[llvm_anyptr_ty],
- [LLVMAnyPointerType<LLVMMatchType<0>>, llvm_i32_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.ldg.global.p">;
- // Use for generic pointers
- // - These intrinsics are used to convert address spaces.
- // - The input pointer and output pointer must have the same type, except for
- // the address-space. (This restriction is not enforced here as there is
- // currently no way to describe it).
- // - This complements the llvm bitcast, which can be used to cast one type
- // of pointer to another type of pointer, while the address space remains
- // the same.
- def int_nvvm_ptr_local_to_gen: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.local.to.gen">;
- def int_nvvm_ptr_shared_to_gen: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.shared.to.gen">;
- def int_nvvm_ptr_global_to_gen: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.global.to.gen">;
- def int_nvvm_ptr_constant_to_gen: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.constant.to.gen">;
- def int_nvvm_ptr_gen_to_global: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.gen.to.global">;
- def int_nvvm_ptr_gen_to_shared: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.gen.to.shared">;
- def int_nvvm_ptr_gen_to_local: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.gen.to.local">;
- def int_nvvm_ptr_gen_to_constant: DefaultAttrsIntrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.ptr.gen.to.constant">;
- // Used in nvvm internally to help address space opt and ptx code generation
- // This is for params that are passed to kernel functions by pointer by-val.
- def int_nvvm_ptr_gen_to_param: Intrinsic<[llvm_anyptr_ty],
- [llvm_anyptr_ty],
- [IntrNoMem, IntrSpeculatable, IntrNoCallback],
- "llvm.nvvm.ptr.gen.to.param">;
- // Move intrinsics, used in nvvm internally
- def int_nvvm_move_i16 : Intrinsic<[llvm_i16_ty], [llvm_i16_ty], [IntrNoMem],
- "llvm.nvvm.move.i16">;
- def int_nvvm_move_i32 : Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem],
- "llvm.nvvm.move.i32">;
- def int_nvvm_move_i64 : Intrinsic<[llvm_i64_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.move.i64">;
- def int_nvvm_move_float : Intrinsic<[llvm_float_ty], [llvm_float_ty],
- [IntrNoMem], "llvm.nvvm.move.float">;
- def int_nvvm_move_double : Intrinsic<[llvm_double_ty], [llvm_double_ty],
- [IntrNoMem], "llvm.nvvm.move.double">;
- def int_nvvm_move_ptr : Intrinsic<[llvm_anyptr_ty], [llvm_anyptr_ty],
- [IntrNoMem, NoCapture<ArgIndex<0>>], "llvm.nvvm.move.ptr">;
- // For getting the handle from a texture or surface variable
- def int_nvvm_texsurf_handle
- : Intrinsic<[llvm_i64_ty], [llvm_metadata_ty, llvm_any_i64ptr_ty],
- [IntrNoMem], "llvm.nvvm.texsurf.handle">;
- def int_nvvm_texsurf_handle_internal
- : Intrinsic<[llvm_i64_ty], [llvm_anyptr_ty],
- [IntrNoMem], "llvm.nvvm.texsurf.handle.internal">;
- /// Error / Warn
- def int_nvvm_compiler_error :
- Intrinsic<[], [llvm_anyptr_ty], [], "llvm.nvvm.compiler.error">;
- def int_nvvm_compiler_warn :
- Intrinsic<[], [llvm_anyptr_ty], [], "llvm.nvvm.compiler.warn">;
- def int_nvvm_reflect :
- Intrinsic<[llvm_i32_ty], [llvm_anyptr_ty], [IntrNoMem], "llvm.nvvm.reflect">;
- // isspacep.{const, global, local, shared}
- def int_nvvm_isspacep_const
- : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.isspacep.const">,
- ClangBuiltin<"__nvvm_isspacep_const">;
- def int_nvvm_isspacep_global
- : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.isspacep.global">,
- ClangBuiltin<"__nvvm_isspacep_global">;
- def int_nvvm_isspacep_local
- : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.isspacep.local">,
- ClangBuiltin<"__nvvm_isspacep_local">;
- def int_nvvm_isspacep_shared
- : DefaultAttrsIntrinsic<[llvm_i1_ty], [llvm_ptr_ty],
- [IntrNoMem, IntrSpeculatable, NoCapture<ArgIndex<0>>],
- "llvm.nvvm.isspacep.shared">,
- ClangBuiltin<"__nvvm_isspacep_shared">;
- // Environment register read
- def int_nvvm_read_ptx_sreg_envreg0
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg0">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg0">;
- def int_nvvm_read_ptx_sreg_envreg1
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg1">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg1">;
- def int_nvvm_read_ptx_sreg_envreg2
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg2">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg2">;
- def int_nvvm_read_ptx_sreg_envreg3
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg3">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg3">;
- def int_nvvm_read_ptx_sreg_envreg4
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg4">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg4">;
- def int_nvvm_read_ptx_sreg_envreg5
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg5">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg5">;
- def int_nvvm_read_ptx_sreg_envreg6
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg6">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg6">;
- def int_nvvm_read_ptx_sreg_envreg7
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg7">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg7">;
- def int_nvvm_read_ptx_sreg_envreg8
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg8">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg8">;
- def int_nvvm_read_ptx_sreg_envreg9
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg9">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg9">;
- def int_nvvm_read_ptx_sreg_envreg10
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg10">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg10">;
- def int_nvvm_read_ptx_sreg_envreg11
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg11">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg11">;
- def int_nvvm_read_ptx_sreg_envreg12
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg12">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg12">;
- def int_nvvm_read_ptx_sreg_envreg13
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg13">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg13">;
- def int_nvvm_read_ptx_sreg_envreg14
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg14">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg14">;
- def int_nvvm_read_ptx_sreg_envreg15
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg15">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg15">;
- def int_nvvm_read_ptx_sreg_envreg16
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg16">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg16">;
- def int_nvvm_read_ptx_sreg_envreg17
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg17">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg17">;
- def int_nvvm_read_ptx_sreg_envreg18
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg18">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg18">;
- def int_nvvm_read_ptx_sreg_envreg19
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg19">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg19">;
- def int_nvvm_read_ptx_sreg_envreg20
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg20">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg20">;
- def int_nvvm_read_ptx_sreg_envreg21
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg21">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg21">;
- def int_nvvm_read_ptx_sreg_envreg22
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg22">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg22">;
- def int_nvvm_read_ptx_sreg_envreg23
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg23">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg23">;
- def int_nvvm_read_ptx_sreg_envreg24
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg24">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg24">;
- def int_nvvm_read_ptx_sreg_envreg25
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg25">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg25">;
- def int_nvvm_read_ptx_sreg_envreg26
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg26">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg26">;
- def int_nvvm_read_ptx_sreg_envreg27
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg27">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg27">;
- def int_nvvm_read_ptx_sreg_envreg28
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg28">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg28">;
- def int_nvvm_read_ptx_sreg_envreg29
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg29">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg29">;
- def int_nvvm_read_ptx_sreg_envreg30
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg30">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg30">;
- def int_nvvm_read_ptx_sreg_envreg31
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable],
- "llvm.nvvm.read.ptx.sreg.envreg31">,
- ClangBuiltin<"__nvvm_read_ptx_sreg_envreg31">;
- // Texture Fetch
- // texmode_independent
- def int_nvvm_tex_1d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.v4f32.s32">;
- def int_nvvm_tex_1d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.v4f32.f32">;
- def int_nvvm_tex_1d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.level.v4f32.f32">;
- def int_nvvm_tex_1d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.grad.v4f32.f32">;
- def int_nvvm_tex_1d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.v4s32.s32">;
- def int_nvvm_tex_1d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.v4s32.f32">;
- def int_nvvm_tex_1d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.level.v4s32.f32">;
- def int_nvvm_tex_1d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.grad.v4s32.f32">;
- def int_nvvm_tex_1d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.v4u32.s32">;
- def int_nvvm_tex_1d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.v4u32.f32">;
- def int_nvvm_tex_1d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.level.v4u32.f32">;
- def int_nvvm_tex_1d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.grad.v4u32.f32">;
- def int_nvvm_tex_1d_array_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.array.v4f32.s32">;
- def int_nvvm_tex_1d_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.v4f32.f32">;
- def int_nvvm_tex_1d_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.level.v4f32.f32">;
- def int_nvvm_tex_1d_array_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.grad.v4f32.f32">;
- def int_nvvm_tex_1d_array_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.array.v4s32.s32">;
- def int_nvvm_tex_1d_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.v4s32.f32">;
- def int_nvvm_tex_1d_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.level.v4s32.f32">;
- def int_nvvm_tex_1d_array_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.grad.v4s32.f32">;
- def int_nvvm_tex_1d_array_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.1d.array.v4u32.s32">;
- def int_nvvm_tex_1d_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.v4u32.f32">;
- def int_nvvm_tex_1d_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.level.v4u32.f32">;
- def int_nvvm_tex_1d_array_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.1d.array.grad.v4u32.f32">;
- def int_nvvm_tex_2d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.v4f32.s32">;
- def int_nvvm_tex_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.v4f32.f32">;
- def int_nvvm_tex_2d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.level.v4f32.f32">;
- def int_nvvm_tex_2d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.grad.v4f32.f32">;
- def int_nvvm_tex_2d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.v4s32.s32">;
- def int_nvvm_tex_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.v4s32.f32">;
- def int_nvvm_tex_2d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.level.v4s32.f32">;
- def int_nvvm_tex_2d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.grad.v4s32.f32">;
- def int_nvvm_tex_2d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.v4u32.s32">;
- def int_nvvm_tex_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.v4u32.f32">;
- def int_nvvm_tex_2d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.level.v4u32.f32">;
- def int_nvvm_tex_2d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.grad.v4u32.f32">;
- def int_nvvm_tex_2d_array_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.array.v4f32.s32">;
- def int_nvvm_tex_2d_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.v4f32.f32">;
- def int_nvvm_tex_2d_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.level.v4f32.f32">;
- def int_nvvm_tex_2d_array_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.grad.v4f32.f32">;
- def int_nvvm_tex_2d_array_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.array.v4s32.s32">;
- def int_nvvm_tex_2d_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.v4s32.f32">;
- def int_nvvm_tex_2d_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.level.v4s32.f32">;
- def int_nvvm_tex_2d_array_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.grad.v4s32.f32">;
- def int_nvvm_tex_2d_array_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.2d.array.v4u32.s32">;
- def int_nvvm_tex_2d_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.v4u32.f32">;
- def int_nvvm_tex_2d_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.level.v4u32.f32">;
- def int_nvvm_tex_2d_array_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.2d.array.grad.v4u32.f32">;
- def int_nvvm_tex_3d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.3d.v4f32.s32">;
- def int_nvvm_tex_3d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.3d.v4f32.f32">;
- def int_nvvm_tex_3d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.level.v4f32.f32">;
- def int_nvvm_tex_3d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.grad.v4f32.f32">;
- def int_nvvm_tex_3d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.3d.v4s32.s32">;
- def int_nvvm_tex_3d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.3d.v4s32.f32">;
- def int_nvvm_tex_3d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.level.v4s32.f32">;
- def int_nvvm_tex_3d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.grad.v4s32.f32">;
- def int_nvvm_tex_3d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.3d.v4u32.s32">;
- def int_nvvm_tex_3d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.3d.v4u32.f32">;
- def int_nvvm_tex_3d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.level.v4u32.f32">;
- def int_nvvm_tex_3d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.3d.grad.v4u32.f32">;
- def int_nvvm_tex_cube_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.v4f32.f32">;
- def int_nvvm_tex_cube_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.level.v4f32.f32">;
- def int_nvvm_tex_cube_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.v4s32.f32">;
- def int_nvvm_tex_cube_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.level.v4s32.f32">;
- def int_nvvm_tex_cube_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.v4u32.f32">;
- def int_nvvm_tex_cube_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.level.v4u32.f32">;
- def int_nvvm_tex_cube_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.v4f32.f32">;
- def int_nvvm_tex_cube_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.level.v4f32.f32">;
- def int_nvvm_tex_cube_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.v4s32.f32">;
- def int_nvvm_tex_cube_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.level.v4s32.f32">;
- def int_nvvm_tex_cube_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.v4u32.f32">;
- def int_nvvm_tex_cube_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.cube.array.level.v4u32.f32">;
- def int_nvvm_tld4_r_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.r.2d.v4f32.f32">;
- def int_nvvm_tld4_g_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.g.2d.v4f32.f32">;
- def int_nvvm_tld4_b_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.b.2d.v4f32.f32">;
- def int_nvvm_tld4_a_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.a.2d.v4f32.f32">;
- def int_nvvm_tld4_r_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.r.2d.v4s32.f32">;
- def int_nvvm_tld4_g_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.g.2d.v4s32.f32">;
- def int_nvvm_tld4_b_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.b.2d.v4s32.f32">;
- def int_nvvm_tld4_a_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.a.2d.v4s32.f32">;
- def int_nvvm_tld4_r_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.r.2d.v4u32.f32">;
- def int_nvvm_tld4_g_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.g.2d.v4u32.f32">;
- def int_nvvm_tld4_b_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.b.2d.v4u32.f32">;
- def int_nvvm_tld4_a_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.a.2d.v4u32.f32">;
- // texmode_unified
- def int_nvvm_tex_unified_1d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.v4f32.s32">;
- def int_nvvm_tex_unified_1d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.v4f32.f32">;
- def int_nvvm_tex_unified_1d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.level.v4f32.f32">;
- def int_nvvm_tex_unified_1d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.grad.v4f32.f32">;
- def int_nvvm_tex_unified_1d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.v4s32.s32">;
- def int_nvvm_tex_unified_1d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.v4s32.f32">;
- def int_nvvm_tex_unified_1d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.level.v4s32.f32">;
- def int_nvvm_tex_unified_1d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.grad.v4s32.f32">;
- def int_nvvm_tex_unified_1d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.v4u32.s32">;
- def int_nvvm_tex_unified_1d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.v4u32.f32">;
- def int_nvvm_tex_unified_1d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.level.v4u32.f32">;
- def int_nvvm_tex_unified_1d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.grad.v4u32.f32">;
- def int_nvvm_tex_unified_1d_array_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4f32.s32">;
- def int_nvvm_tex_unified_1d_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4f32.f32">;
- def int_nvvm_tex_unified_1d_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.level.v4f32.f32">;
- def int_nvvm_tex_unified_1d_array_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.grad.v4f32.f32">;
- def int_nvvm_tex_unified_1d_array_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4s32.s32">;
- def int_nvvm_tex_unified_1d_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4s32.f32">;
- def int_nvvm_tex_unified_1d_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.level.v4s32.f32">;
- def int_nvvm_tex_unified_1d_array_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.grad.v4s32.f32">;
- def int_nvvm_tex_unified_1d_array_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4u32.s32">;
- def int_nvvm_tex_unified_1d_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.v4u32.f32">;
- def int_nvvm_tex_unified_1d_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.level.v4u32.f32">;
- def int_nvvm_tex_unified_1d_array_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.1d.array.grad.v4u32.f32">;
- def int_nvvm_tex_unified_2d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.v4f32.s32">;
- def int_nvvm_tex_unified_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.v4f32.f32">;
- def int_nvvm_tex_unified_2d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.level.v4f32.f32">;
- def int_nvvm_tex_unified_2d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.grad.v4f32.f32">;
- def int_nvvm_tex_unified_2d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.v4s32.s32">;
- def int_nvvm_tex_unified_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.v4s32.f32">;
- def int_nvvm_tex_unified_2d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.level.v4s32.f32">;
- def int_nvvm_tex_unified_2d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.grad.v4s32.f32">;
- def int_nvvm_tex_unified_2d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.v4u32.s32">;
- def int_nvvm_tex_unified_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.v4u32.f32">;
- def int_nvvm_tex_unified_2d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.level.v4u32.f32">;
- def int_nvvm_tex_unified_2d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.grad.v4u32.f32">;
- def int_nvvm_tex_unified_2d_array_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4f32.s32">;
- def int_nvvm_tex_unified_2d_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4f32.f32">;
- def int_nvvm_tex_unified_2d_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.level.v4f32.f32">;
- def int_nvvm_tex_unified_2d_array_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.grad.v4f32.f32">;
- def int_nvvm_tex_unified_2d_array_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4s32.s32">;
- def int_nvvm_tex_unified_2d_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4s32.f32">;
- def int_nvvm_tex_unified_2d_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.level.v4s32.f32">;
- def int_nvvm_tex_unified_2d_array_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.grad.v4s32.f32">;
- def int_nvvm_tex_unified_2d_array_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4u32.s32">;
- def int_nvvm_tex_unified_2d_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.v4u32.f32">;
- def int_nvvm_tex_unified_2d_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.level.v4u32.f32">;
- def int_nvvm_tex_unified_2d_array_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.2d.array.grad.v4u32.f32">;
- def int_nvvm_tex_unified_3d_v4f32_s32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.unified.3d.v4f32.s32">;
- def int_nvvm_tex_unified_3d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.v4f32.f32">;
- def int_nvvm_tex_unified_3d_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.level.v4f32.f32">;
- def int_nvvm_tex_unified_3d_grad_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.grad.v4f32.f32">;
- def int_nvvm_tex_unified_3d_v4s32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.unified.3d.v4s32.s32">;
- def int_nvvm_tex_unified_3d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.v4s32.f32">;
- def int_nvvm_tex_unified_3d_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.level.v4s32.f32">;
- def int_nvvm_tex_unified_3d_grad_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.grad.v4s32.f32">;
- def int_nvvm_tex_unified_3d_v4u32_s32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [], "llvm.nvvm.tex.unified.3d.v4u32.s32">;
- def int_nvvm_tex_unified_3d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.v4u32.f32">;
- def int_nvvm_tex_unified_3d_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.level.v4u32.f32">;
- def int_nvvm_tex_unified_3d_grad_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.3d.grad.v4u32.f32">;
- def int_nvvm_tex_unified_cube_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.v4f32.f32">;
- def int_nvvm_tex_unified_cube_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.level.v4f32.f32">;
- def int_nvvm_tex_unified_cube_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.v4s32.f32">;
- def int_nvvm_tex_unified_cube_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.level.v4s32.f32">;
- def int_nvvm_tex_unified_cube_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.v4u32.f32">;
- def int_nvvm_tex_unified_cube_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.level.v4u32.f32">;
- def int_nvvm_tex_unified_cube_array_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.v4f32.f32">;
- def int_nvvm_tex_unified_cube_array_level_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.level.v4f32.f32">;
- def int_nvvm_tex_unified_cube_array_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.v4s32.f32">;
- def int_nvvm_tex_unified_cube_array_level_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.level.v4s32.f32">;
- def int_nvvm_tex_unified_cube_array_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.v4u32.f32">;
- def int_nvvm_tex_unified_cube_array_level_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty,
- llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tex.unified.cube.array.level.v4u32.f32">;
- def int_nvvm_tld4_unified_r_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.r.2d.v4f32.f32">;
- def int_nvvm_tld4_unified_g_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.g.2d.v4f32.f32">;
- def int_nvvm_tld4_unified_b_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.b.2d.v4f32.f32">;
- def int_nvvm_tld4_unified_a_2d_v4f32_f32
- : Intrinsic<[llvm_float_ty, llvm_float_ty, llvm_float_ty, llvm_float_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.a.2d.v4f32.f32">;
- def int_nvvm_tld4_unified_r_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.r.2d.v4s32.f32">;
- def int_nvvm_tld4_unified_g_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.g.2d.v4s32.f32">;
- def int_nvvm_tld4_unified_b_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.b.2d.v4s32.f32">;
- def int_nvvm_tld4_unified_a_2d_v4s32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.a.2d.v4s32.f32">;
- def int_nvvm_tld4_unified_r_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.r.2d.v4u32.f32">;
- def int_nvvm_tld4_unified_g_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.g.2d.v4u32.f32">;
- def int_nvvm_tld4_unified_b_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.b.2d.v4u32.f32">;
- def int_nvvm_tld4_unified_a_2d_v4u32_f32
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_float_ty, llvm_float_ty], [],
- "llvm.nvvm.tld4.unified.a.2d.v4u32.f32">;
- //=== Surface Load
- // .clamp variants
- def int_nvvm_suld_1d_i8_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i8.clamp">;
- def int_nvvm_suld_1d_i16_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i16.clamp">;
- def int_nvvm_suld_1d_i32_clamp
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i32.clamp">;
- def int_nvvm_suld_1d_i64_clamp
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i64.clamp">;
- def int_nvvm_suld_1d_v2i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i8.clamp">;
- def int_nvvm_suld_1d_v2i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i16.clamp">;
- def int_nvvm_suld_1d_v2i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i32.clamp">;
- def int_nvvm_suld_1d_v2i64_clamp
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i64.clamp">;
- def int_nvvm_suld_1d_v4i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i8.clamp">;
- def int_nvvm_suld_1d_v4i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i16.clamp">;
- def int_nvvm_suld_1d_v4i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i32.clamp">;
- def int_nvvm_suld_1d_array_i8_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i8.clamp">;
- def int_nvvm_suld_1d_array_i16_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i16.clamp">;
- def int_nvvm_suld_1d_array_i32_clamp
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i32.clamp">;
- def int_nvvm_suld_1d_array_i64_clamp
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i64.clamp">;
- def int_nvvm_suld_1d_array_v2i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i8.clamp">;
- def int_nvvm_suld_1d_array_v2i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i16.clamp">;
- def int_nvvm_suld_1d_array_v2i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i32.clamp">;
- def int_nvvm_suld_1d_array_v2i64_clamp
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i64.clamp">;
- def int_nvvm_suld_1d_array_v4i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i8.clamp">;
- def int_nvvm_suld_1d_array_v4i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i16.clamp">;
- def int_nvvm_suld_1d_array_v4i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i32.clamp">;
- def int_nvvm_suld_2d_i8_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i8.clamp">;
- def int_nvvm_suld_2d_i16_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i16.clamp">;
- def int_nvvm_suld_2d_i32_clamp
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i32.clamp">;
- def int_nvvm_suld_2d_i64_clamp
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i64.clamp">;
- def int_nvvm_suld_2d_v2i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i8.clamp">;
- def int_nvvm_suld_2d_v2i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i16.clamp">;
- def int_nvvm_suld_2d_v2i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i32.clamp">;
- def int_nvvm_suld_2d_v2i64_clamp
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i64.clamp">;
- def int_nvvm_suld_2d_v4i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i8.clamp">;
- def int_nvvm_suld_2d_v4i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i16.clamp">;
- def int_nvvm_suld_2d_v4i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i32.clamp">;
- def int_nvvm_suld_2d_array_i8_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i8.clamp">;
- def int_nvvm_suld_2d_array_i16_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i16.clamp">;
- def int_nvvm_suld_2d_array_i32_clamp
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i32.clamp">;
- def int_nvvm_suld_2d_array_i64_clamp
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i64.clamp">;
- def int_nvvm_suld_2d_array_v2i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i8.clamp">;
- def int_nvvm_suld_2d_array_v2i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i16.clamp">;
- def int_nvvm_suld_2d_array_v2i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i32.clamp">;
- def int_nvvm_suld_2d_array_v2i64_clamp
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i64.clamp">;
- def int_nvvm_suld_2d_array_v4i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i8.clamp">;
- def int_nvvm_suld_2d_array_v4i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i16.clamp">;
- def int_nvvm_suld_2d_array_v4i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i32.clamp">;
- def int_nvvm_suld_3d_i8_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i8.clamp">;
- def int_nvvm_suld_3d_i16_clamp
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i16.clamp">;
- def int_nvvm_suld_3d_i32_clamp
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i32.clamp">;
- def int_nvvm_suld_3d_i64_clamp
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i64.clamp">;
- def int_nvvm_suld_3d_v2i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i8.clamp">;
- def int_nvvm_suld_3d_v2i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i16.clamp">;
- def int_nvvm_suld_3d_v2i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i32.clamp">;
- def int_nvvm_suld_3d_v2i64_clamp
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i64.clamp">;
- def int_nvvm_suld_3d_v4i8_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i8.clamp">;
- def int_nvvm_suld_3d_v4i16_clamp
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i16.clamp">;
- def int_nvvm_suld_3d_v4i32_clamp
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i32.clamp">;
- // .trap variants
- def int_nvvm_suld_1d_i8_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i8.trap">;
- def int_nvvm_suld_1d_i16_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i16.trap">;
- def int_nvvm_suld_1d_i32_trap
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i32.trap">;
- def int_nvvm_suld_1d_i64_trap
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i64.trap">;
- def int_nvvm_suld_1d_v2i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i8.trap">;
- def int_nvvm_suld_1d_v2i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i16.trap">;
- def int_nvvm_suld_1d_v2i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i32.trap">;
- def int_nvvm_suld_1d_v2i64_trap
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i64.trap">;
- def int_nvvm_suld_1d_v4i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i8.trap">;
- def int_nvvm_suld_1d_v4i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i16.trap">;
- def int_nvvm_suld_1d_v4i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i32.trap">;
- def int_nvvm_suld_1d_array_i8_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i8.trap">;
- def int_nvvm_suld_1d_array_i16_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i16.trap">;
- def int_nvvm_suld_1d_array_i32_trap
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i32.trap">;
- def int_nvvm_suld_1d_array_i64_trap
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i64.trap">;
- def int_nvvm_suld_1d_array_v2i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i8.trap">;
- def int_nvvm_suld_1d_array_v2i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i16.trap">;
- def int_nvvm_suld_1d_array_v2i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i32.trap">;
- def int_nvvm_suld_1d_array_v2i64_trap
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i64.trap">;
- def int_nvvm_suld_1d_array_v4i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i8.trap">;
- def int_nvvm_suld_1d_array_v4i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i16.trap">;
- def int_nvvm_suld_1d_array_v4i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i32.trap">;
- def int_nvvm_suld_2d_i8_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i8.trap">;
- def int_nvvm_suld_2d_i16_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i16.trap">;
- def int_nvvm_suld_2d_i32_trap
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i32.trap">;
- def int_nvvm_suld_2d_i64_trap
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i64.trap">;
- def int_nvvm_suld_2d_v2i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i8.trap">;
- def int_nvvm_suld_2d_v2i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i16.trap">;
- def int_nvvm_suld_2d_v2i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i32.trap">;
- def int_nvvm_suld_2d_v2i64_trap
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i64.trap">;
- def int_nvvm_suld_2d_v4i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i8.trap">;
- def int_nvvm_suld_2d_v4i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i16.trap">;
- def int_nvvm_suld_2d_v4i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i32.trap">;
- def int_nvvm_suld_2d_array_i8_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i8.trap">;
- def int_nvvm_suld_2d_array_i16_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i16.trap">;
- def int_nvvm_suld_2d_array_i32_trap
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i32.trap">;
- def int_nvvm_suld_2d_array_i64_trap
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i64.trap">;
- def int_nvvm_suld_2d_array_v2i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i8.trap">;
- def int_nvvm_suld_2d_array_v2i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i16.trap">;
- def int_nvvm_suld_2d_array_v2i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i32.trap">;
- def int_nvvm_suld_2d_array_v2i64_trap
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i64.trap">;
- def int_nvvm_suld_2d_array_v4i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i8.trap">;
- def int_nvvm_suld_2d_array_v4i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i16.trap">;
- def int_nvvm_suld_2d_array_v4i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i32.trap">;
- def int_nvvm_suld_3d_i8_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i8.trap">;
- def int_nvvm_suld_3d_i16_trap
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i16.trap">;
- def int_nvvm_suld_3d_i32_trap
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i32.trap">;
- def int_nvvm_suld_3d_i64_trap
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i64.trap">;
- def int_nvvm_suld_3d_v2i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i8.trap">;
- def int_nvvm_suld_3d_v2i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i16.trap">;
- def int_nvvm_suld_3d_v2i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i32.trap">;
- def int_nvvm_suld_3d_v2i64_trap
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i64.trap">;
- def int_nvvm_suld_3d_v4i8_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i8.trap">;
- def int_nvvm_suld_3d_v4i16_trap
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i16.trap">;
- def int_nvvm_suld_3d_v4i32_trap
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i32.trap">;
- // .zero variants
- def int_nvvm_suld_1d_i8_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i8.zero">;
- def int_nvvm_suld_1d_i16_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i16.zero">;
- def int_nvvm_suld_1d_i32_zero
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i32.zero">;
- def int_nvvm_suld_1d_i64_zero
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.i64.zero">;
- def int_nvvm_suld_1d_v2i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i8.zero">;
- def int_nvvm_suld_1d_v2i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i16.zero">;
- def int_nvvm_suld_1d_v2i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i32.zero">;
- def int_nvvm_suld_1d_v2i64_zero
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v2i64.zero">;
- def int_nvvm_suld_1d_v4i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i8.zero">;
- def int_nvvm_suld_1d_v4i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i16.zero">;
- def int_nvvm_suld_1d_v4i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.v4i32.zero">;
- def int_nvvm_suld_1d_array_i8_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i8.zero">;
- def int_nvvm_suld_1d_array_i16_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i16.zero">;
- def int_nvvm_suld_1d_array_i32_zero
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i32.zero">;
- def int_nvvm_suld_1d_array_i64_zero
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.i64.zero">;
- def int_nvvm_suld_1d_array_v2i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i8.zero">;
- def int_nvvm_suld_1d_array_v2i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i16.zero">;
- def int_nvvm_suld_1d_array_v2i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i32.zero">;
- def int_nvvm_suld_1d_array_v2i64_zero
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v2i64.zero">;
- def int_nvvm_suld_1d_array_v4i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i8.zero">;
- def int_nvvm_suld_1d_array_v4i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i16.zero">;
- def int_nvvm_suld_1d_array_v4i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.1d.array.v4i32.zero">;
- def int_nvvm_suld_2d_i8_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i8.zero">;
- def int_nvvm_suld_2d_i16_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i16.zero">;
- def int_nvvm_suld_2d_i32_zero
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i32.zero">;
- def int_nvvm_suld_2d_i64_zero
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.i64.zero">;
- def int_nvvm_suld_2d_v2i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i8.zero">;
- def int_nvvm_suld_2d_v2i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i16.zero">;
- def int_nvvm_suld_2d_v2i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i32.zero">;
- def int_nvvm_suld_2d_v2i64_zero
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v2i64.zero">;
- def int_nvvm_suld_2d_v4i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i8.zero">;
- def int_nvvm_suld_2d_v4i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i16.zero">;
- def int_nvvm_suld_2d_v4i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.v4i32.zero">;
- def int_nvvm_suld_2d_array_i8_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i8.zero">;
- def int_nvvm_suld_2d_array_i16_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i16.zero">;
- def int_nvvm_suld_2d_array_i32_zero
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i32.zero">;
- def int_nvvm_suld_2d_array_i64_zero
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.i64.zero">;
- def int_nvvm_suld_2d_array_v2i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i8.zero">;
- def int_nvvm_suld_2d_array_v2i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i16.zero">;
- def int_nvvm_suld_2d_array_v2i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i32.zero">;
- def int_nvvm_suld_2d_array_v2i64_zero
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v2i64.zero">;
- def int_nvvm_suld_2d_array_v4i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i8.zero">;
- def int_nvvm_suld_2d_array_v4i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i16.zero">;
- def int_nvvm_suld_2d_array_v4i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.2d.array.v4i32.zero">;
- def int_nvvm_suld_3d_i8_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i8.zero">;
- def int_nvvm_suld_3d_i16_zero
- : Intrinsic<[llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i16.zero">;
- def int_nvvm_suld_3d_i32_zero
- : Intrinsic<[llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i32.zero">;
- def int_nvvm_suld_3d_i64_zero
- : Intrinsic<[llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.i64.zero">;
- def int_nvvm_suld_3d_v2i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i8.zero">;
- def int_nvvm_suld_3d_v2i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i16.zero">;
- def int_nvvm_suld_3d_v2i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i32.zero">;
- def int_nvvm_suld_3d_v2i64_zero
- : Intrinsic<[llvm_i64_ty, llvm_i64_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v2i64.zero">;
- def int_nvvm_suld_3d_v4i8_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i8.zero">;
- def int_nvvm_suld_3d_v4i16_zero
- : Intrinsic<[llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i16.zero">;
- def int_nvvm_suld_3d_v4i32_zero
- : Intrinsic<[llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty],
- [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.suld.3d.v4i32.zero">;
- //===- Texture Query ------------------------------------------------------===//
- def int_nvvm_txq_channel_order
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.channel.order">,
- ClangBuiltin<"__nvvm_txq_channel_order">;
- def int_nvvm_txq_channel_data_type
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.channel.data.type">,
- ClangBuiltin<"__nvvm_txq_channel_data_type">;
- def int_nvvm_txq_width
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.width">,
- ClangBuiltin<"__nvvm_txq_width">;
- def int_nvvm_txq_height
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.height">,
- ClangBuiltin<"__nvvm_txq_height">;
- def int_nvvm_txq_depth
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.depth">,
- ClangBuiltin<"__nvvm_txq_depth">;
- def int_nvvm_txq_array_size
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.array.size">,
- ClangBuiltin<"__nvvm_txq_array_size">;
- def int_nvvm_txq_num_samples
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.num.samples">,
- ClangBuiltin<"__nvvm_txq_num_samples">;
- def int_nvvm_txq_num_mipmap_levels
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.txq.num.mipmap.levels">,
- ClangBuiltin<"__nvvm_txq_num_mipmap_levels">;
- //===- Surface Query ------------------------------------------------------===//
- def int_nvvm_suq_channel_order
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.channel.order">,
- ClangBuiltin<"__nvvm_suq_channel_order">;
- def int_nvvm_suq_channel_data_type
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.channel.data.type">,
- ClangBuiltin<"__nvvm_suq_channel_data_type">;
- def int_nvvm_suq_width
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.width">,
- ClangBuiltin<"__nvvm_suq_width">;
- def int_nvvm_suq_height
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.height">,
- ClangBuiltin<"__nvvm_suq_height">;
- def int_nvvm_suq_depth
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.depth">,
- ClangBuiltin<"__nvvm_suq_depth">;
- def int_nvvm_suq_array_size
- : Intrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.suq.array.size">,
- ClangBuiltin<"__nvvm_suq_array_size">;
- //===- Handle Query -------------------------------------------------------===//
- def int_nvvm_istypep_sampler
- : Intrinsic<[llvm_i1_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.istypep.sampler">,
- ClangBuiltin<"__nvvm_istypep_sampler">;
- def int_nvvm_istypep_surface
- : Intrinsic<[llvm_i1_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.istypep.surface">,
- ClangBuiltin<"__nvvm_istypep_surface">;
- def int_nvvm_istypep_texture
- : Intrinsic<[llvm_i1_ty], [llvm_i64_ty], [IntrNoMem],
- "llvm.nvvm.istypep.texture">,
- ClangBuiltin<"__nvvm_istypep_texture">;
- //===- Surface Stores -----------------------------------------------------===//
- // Unformatted
- // .clamp variant
- def int_nvvm_sust_b_1d_i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_i8_clamp">;
- def int_nvvm_sust_b_1d_i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_i16_clamp">;
- def int_nvvm_sust_b_1d_i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_i32_clamp">;
- def int_nvvm_sust_b_1d_i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_i64_clamp">;
- def int_nvvm_sust_b_1d_v2i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i8_clamp">;
- def int_nvvm_sust_b_1d_v2i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i16_clamp">;
- def int_nvvm_sust_b_1d_v2i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v2i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i32_clamp">;
- def int_nvvm_sust_b_1d_v2i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.v2i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i64_clamp">;
- def int_nvvm_sust_b_1d_v4i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i8_clamp">;
- def int_nvvm_sust_b_1d_v4i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i16_clamp">;
- def int_nvvm_sust_b_1d_v4i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v4i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i32_clamp">;
- def int_nvvm_sust_b_1d_array_i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i8_clamp">;
- def int_nvvm_sust_b_1d_array_i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i16_clamp">;
- def int_nvvm_sust_b_1d_array_i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i32_clamp">;
- def int_nvvm_sust_b_1d_array_i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i64_clamp">;
- def int_nvvm_sust_b_1d_array_v2i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i8_clamp">;
- def int_nvvm_sust_b_1d_array_v2i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i16_clamp">;
- def int_nvvm_sust_b_1d_array_v2i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i32_clamp">;
- def int_nvvm_sust_b_1d_array_v2i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i64_clamp">;
- def int_nvvm_sust_b_1d_array_v4i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i8_clamp">;
- def int_nvvm_sust_b_1d_array_v4i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i16_clamp">;
- def int_nvvm_sust_b_1d_array_v4i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i32_clamp">;
- def int_nvvm_sust_b_2d_i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_i8_clamp">;
- def int_nvvm_sust_b_2d_i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_i16_clamp">;
- def int_nvvm_sust_b_2d_i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_i32_clamp">;
- def int_nvvm_sust_b_2d_i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_i64_clamp">;
- def int_nvvm_sust_b_2d_v2i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i8_clamp">;
- def int_nvvm_sust_b_2d_v2i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i16_clamp">;
- def int_nvvm_sust_b_2d_v2i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v2i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i32_clamp">;
- def int_nvvm_sust_b_2d_v2i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.v2i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i64_clamp">;
- def int_nvvm_sust_b_2d_v4i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i8_clamp">;
- def int_nvvm_sust_b_2d_v4i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i16_clamp">;
- def int_nvvm_sust_b_2d_v4i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v4i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i32_clamp">;
- def int_nvvm_sust_b_2d_array_i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i8_clamp">;
- def int_nvvm_sust_b_2d_array_i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i16_clamp">;
- def int_nvvm_sust_b_2d_array_i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i32_clamp">;
- def int_nvvm_sust_b_2d_array_i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i64_clamp">;
- def int_nvvm_sust_b_2d_array_v2i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i8_clamp">;
- def int_nvvm_sust_b_2d_array_v2i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i16_clamp">;
- def int_nvvm_sust_b_2d_array_v2i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i32_clamp">;
- def int_nvvm_sust_b_2d_array_v2i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i64_clamp">;
- def int_nvvm_sust_b_2d_array_v4i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i8_clamp">;
- def int_nvvm_sust_b_2d_array_v4i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i16_clamp">;
- def int_nvvm_sust_b_2d_array_v4i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i32_clamp">;
- def int_nvvm_sust_b_3d_i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_i8_clamp">;
- def int_nvvm_sust_b_3d_i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_i16_clamp">;
- def int_nvvm_sust_b_3d_i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_i32_clamp">;
- def int_nvvm_sust_b_3d_i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_i64_clamp">;
- def int_nvvm_sust_b_3d_v2i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i8_clamp">;
- def int_nvvm_sust_b_3d_v2i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i16_clamp">;
- def int_nvvm_sust_b_3d_v2i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v2i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i32_clamp">;
- def int_nvvm_sust_b_3d_v2i64_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.v2i64.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i64_clamp">;
- def int_nvvm_sust_b_3d_v4i8_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i8.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i8_clamp">;
- def int_nvvm_sust_b_3d_v4i16_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i16.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i16_clamp">;
- def int_nvvm_sust_b_3d_v4i32_clamp
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v4i32.clamp">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i32_clamp">;
- // .trap variant
- def int_nvvm_sust_b_1d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_i8_trap">;
- def int_nvvm_sust_b_1d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_i16_trap">;
- def int_nvvm_sust_b_1d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_i32_trap">;
- def int_nvvm_sust_b_1d_i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_i64_trap">;
- def int_nvvm_sust_b_1d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i8_trap">;
- def int_nvvm_sust_b_1d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i16_trap">;
- def int_nvvm_sust_b_1d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i32_trap">;
- def int_nvvm_sust_b_1d_v2i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.v2i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i64_trap">;
- def int_nvvm_sust_b_1d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i8_trap">;
- def int_nvvm_sust_b_1d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i16_trap">;
- def int_nvvm_sust_b_1d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i32_trap">;
- def int_nvvm_sust_b_1d_array_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i8_trap">;
- def int_nvvm_sust_b_1d_array_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i16_trap">;
- def int_nvvm_sust_b_1d_array_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i32_trap">;
- def int_nvvm_sust_b_1d_array_i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i64_trap">;
- def int_nvvm_sust_b_1d_array_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i8_trap">;
- def int_nvvm_sust_b_1d_array_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i16_trap">;
- def int_nvvm_sust_b_1d_array_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i32_trap">;
- def int_nvvm_sust_b_1d_array_v2i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i64_trap">;
- def int_nvvm_sust_b_1d_array_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i8_trap">;
- def int_nvvm_sust_b_1d_array_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i16_trap">;
- def int_nvvm_sust_b_1d_array_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i32_trap">;
- def int_nvvm_sust_b_2d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_i8_trap">;
- def int_nvvm_sust_b_2d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_i16_trap">;
- def int_nvvm_sust_b_2d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_i32_trap">;
- def int_nvvm_sust_b_2d_i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_i64_trap">;
- def int_nvvm_sust_b_2d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i8_trap">;
- def int_nvvm_sust_b_2d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i16_trap">;
- def int_nvvm_sust_b_2d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i32_trap">;
- def int_nvvm_sust_b_2d_v2i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.v2i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i64_trap">;
- def int_nvvm_sust_b_2d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i8_trap">;
- def int_nvvm_sust_b_2d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i16_trap">;
- def int_nvvm_sust_b_2d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i32_trap">;
- def int_nvvm_sust_b_2d_array_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i8_trap">;
- def int_nvvm_sust_b_2d_array_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i16_trap">;
- def int_nvvm_sust_b_2d_array_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i32_trap">;
- def int_nvvm_sust_b_2d_array_i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i64_trap">;
- def int_nvvm_sust_b_2d_array_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i8_trap">;
- def int_nvvm_sust_b_2d_array_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i16_trap">;
- def int_nvvm_sust_b_2d_array_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i32_trap">;
- def int_nvvm_sust_b_2d_array_v2i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i64_trap">;
- def int_nvvm_sust_b_2d_array_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i8_trap">;
- def int_nvvm_sust_b_2d_array_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i16_trap">;
- def int_nvvm_sust_b_2d_array_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i32_trap">;
- def int_nvvm_sust_b_3d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_i8_trap">;
- def int_nvvm_sust_b_3d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_i16_trap">;
- def int_nvvm_sust_b_3d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_i32_trap">;
- def int_nvvm_sust_b_3d_i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_i64_trap">;
- def int_nvvm_sust_b_3d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i8_trap">;
- def int_nvvm_sust_b_3d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i16_trap">;
- def int_nvvm_sust_b_3d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i32_trap">;
- def int_nvvm_sust_b_3d_v2i64_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.v2i64.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i64_trap">;
- def int_nvvm_sust_b_3d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i8_trap">;
- def int_nvvm_sust_b_3d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i16_trap">;
- def int_nvvm_sust_b_3d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i32_trap">;
- // .zero variant
- def int_nvvm_sust_b_1d_i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_i8_zero">;
- def int_nvvm_sust_b_1d_i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_i16_zero">;
- def int_nvvm_sust_b_1d_i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_i32_zero">;
- def int_nvvm_sust_b_1d_i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_i64_zero">;
- def int_nvvm_sust_b_1d_v2i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i8_zero">;
- def int_nvvm_sust_b_1d_v2i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v2i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i16_zero">;
- def int_nvvm_sust_b_1d_v2i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v2i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i32_zero">;
- def int_nvvm_sust_b_1d_v2i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.v2i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v2i64_zero">;
- def int_nvvm_sust_b_1d_v4i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i8_zero">;
- def int_nvvm_sust_b_1d_v4i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.v4i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i16_zero">;
- def int_nvvm_sust_b_1d_v4i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.v4i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_v4i32_zero">;
- def int_nvvm_sust_b_1d_array_i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i8_zero">;
- def int_nvvm_sust_b_1d_array_i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i16_zero">;
- def int_nvvm_sust_b_1d_array_i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i32_zero">;
- def int_nvvm_sust_b_1d_array_i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_i64_zero">;
- def int_nvvm_sust_b_1d_array_v2i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i8_zero">;
- def int_nvvm_sust_b_1d_array_v2i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i16_zero">;
- def int_nvvm_sust_b_1d_array_v2i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i32_zero">;
- def int_nvvm_sust_b_1d_array_v2i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.1d.array.v2i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v2i64_zero">;
- def int_nvvm_sust_b_1d_array_v4i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i8_zero">;
- def int_nvvm_sust_b_1d_array_v4i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i16_zero">;
- def int_nvvm_sust_b_1d_array_v4i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.1d.array.v4i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_1d_array_v4i32_zero">;
- def int_nvvm_sust_b_2d_i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_i8_zero">;
- def int_nvvm_sust_b_2d_i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_i16_zero">;
- def int_nvvm_sust_b_2d_i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_i32_zero">;
- def int_nvvm_sust_b_2d_i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_i64_zero">;
- def int_nvvm_sust_b_2d_v2i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i8_zero">;
- def int_nvvm_sust_b_2d_v2i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v2i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i16_zero">;
- def int_nvvm_sust_b_2d_v2i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v2i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i32_zero">;
- def int_nvvm_sust_b_2d_v2i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.v2i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v2i64_zero">;
- def int_nvvm_sust_b_2d_v4i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i8_zero">;
- def int_nvvm_sust_b_2d_v4i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.v4i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i16_zero">;
- def int_nvvm_sust_b_2d_v4i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.v4i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_v4i32_zero">;
- def int_nvvm_sust_b_2d_array_i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i8_zero">;
- def int_nvvm_sust_b_2d_array_i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i16_zero">;
- def int_nvvm_sust_b_2d_array_i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i32_zero">;
- def int_nvvm_sust_b_2d_array_i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_i64_zero">;
- def int_nvvm_sust_b_2d_array_v2i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i8_zero">;
- def int_nvvm_sust_b_2d_array_v2i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i16_zero">;
- def int_nvvm_sust_b_2d_array_v2i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i32_zero">;
- def int_nvvm_sust_b_2d_array_v2i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.2d.array.v2i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v2i64_zero">;
- def int_nvvm_sust_b_2d_array_v4i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i8_zero">;
- def int_nvvm_sust_b_2d_array_v4i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i16_zero">;
- def int_nvvm_sust_b_2d_array_v4i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.2d.array.v4i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_2d_array_v4i32_zero">;
- def int_nvvm_sust_b_3d_i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_i8_zero">;
- def int_nvvm_sust_b_3d_i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_i16_zero">;
- def int_nvvm_sust_b_3d_i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_i32_zero">;
- def int_nvvm_sust_b_3d_i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_i64_zero">;
- def int_nvvm_sust_b_3d_v2i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i8_zero">;
- def int_nvvm_sust_b_3d_v2i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v2i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i16_zero">;
- def int_nvvm_sust_b_3d_v2i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v2i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i32_zero">;
- def int_nvvm_sust_b_3d_v2i64_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i64_ty, llvm_i64_ty], [],
- "llvm.nvvm.sust.b.3d.v2i64.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v2i64_zero">;
- def int_nvvm_sust_b_3d_v4i8_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i8.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i8_zero">;
- def int_nvvm_sust_b_3d_v4i16_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.b.3d.v4i16.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i16_zero">;
- def int_nvvm_sust_b_3d_v4i32_zero
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.b.3d.v4i32.zero">,
- ClangBuiltin<"__nvvm_sust_b_3d_v4i32_zero">;
- // Formatted
- def int_nvvm_sust_p_1d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_i8_trap">;
- def int_nvvm_sust_p_1d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_i16_trap">;
- def int_nvvm_sust_p_1d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_i32_trap">;
- def int_nvvm_sust_p_1d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v2i8_trap">;
- def int_nvvm_sust_p_1d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v2i16_trap">;
- def int_nvvm_sust_p_1d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v2i32_trap">;
- def int_nvvm_sust_p_1d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v4i8_trap">;
- def int_nvvm_sust_p_1d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v4i16_trap">;
- def int_nvvm_sust_p_1d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_v4i32_trap">;
- def int_nvvm_sust_p_1d_array_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_i8_trap">;
- def int_nvvm_sust_p_1d_array_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_i16_trap">;
- def int_nvvm_sust_p_1d_array_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.array.i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_i32_trap">;
- def int_nvvm_sust_p_1d_array_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v2i8_trap">;
- def int_nvvm_sust_p_1d_array_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v2i16_trap">;
- def int_nvvm_sust_p_1d_array_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.array.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v2i32_trap">;
- def int_nvvm_sust_p_1d_array_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v4i8_trap">;
- def int_nvvm_sust_p_1d_array_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.1d.array.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v4i16_trap">;
- def int_nvvm_sust_p_1d_array_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.1d.array.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_1d_array_v4i32_trap">;
- def int_nvvm_sust_p_2d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_i8_trap">;
- def int_nvvm_sust_p_2d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_i16_trap">;
- def int_nvvm_sust_p_2d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_i32_trap">;
- def int_nvvm_sust_p_2d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v2i8_trap">;
- def int_nvvm_sust_p_2d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v2i16_trap">;
- def int_nvvm_sust_p_2d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v2i32_trap">;
- def int_nvvm_sust_p_2d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v4i8_trap">;
- def int_nvvm_sust_p_2d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i16_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v4i16_trap">;
- def int_nvvm_sust_p_2d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_v4i32_trap">;
- def int_nvvm_sust_p_2d_array_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_i8_trap">;
- def int_nvvm_sust_p_2d_array_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_i16_trap">;
- def int_nvvm_sust_p_2d_array_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.array.i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_i32_trap">;
- def int_nvvm_sust_p_2d_array_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v2i8_trap">;
- def int_nvvm_sust_p_2d_array_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v2i16_trap">;
- def int_nvvm_sust_p_2d_array_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.array.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v2i32_trap">;
- def int_nvvm_sust_p_2d_array_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v4i8_trap">;
- def int_nvvm_sust_p_2d_array_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.2d.array.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v4i16_trap">;
- def int_nvvm_sust_p_2d_array_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.2d.array.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_2d_array_v4i32_trap">;
- def int_nvvm_sust_p_3d_i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_i8_trap">;
- def int_nvvm_sust_p_3d_i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_i16_trap">;
- def int_nvvm_sust_p_3d_i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.3d.i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_i32_trap">;
- def int_nvvm_sust_p_3d_v2i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.v2i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v2i8_trap">;
- def int_nvvm_sust_p_3d_v2i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.v2i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v2i16_trap">;
- def int_nvvm_sust_p_3d_v2i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.3d.v2i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v2i32_trap">;
- def int_nvvm_sust_p_3d_v4i8_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.v4i8.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v4i8_trap">;
- def int_nvvm_sust_p_3d_v4i16_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i16_ty, llvm_i16_ty, llvm_i16_ty, llvm_i16_ty], [],
- "llvm.nvvm.sust.p.3d.v4i16.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v4i16_trap">;
- def int_nvvm_sust_p_3d_v4i32_trap
- : Intrinsic<[], [llvm_i64_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty,
- llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], [],
- "llvm.nvvm.sust.p.3d.v4i32.trap">,
- ClangBuiltin<"__nvvm_sust_p_3d_v4i32_trap">;
- def int_nvvm_rotate_b32
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable], "llvm.nvvm.rotate.b32">,
- ClangBuiltin<"__nvvm_rotate_b32">;
- def int_nvvm_rotate_b64
- : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable], "llvm.nvvm.rotate.b64">,
- ClangBuiltin<"__nvvm_rotate_b64">;
- def int_nvvm_rotate_right_b64
- : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i64_ty, llvm_i32_ty],
- [IntrNoMem, IntrSpeculatable], "llvm.nvvm.rotate.right.b64">,
- ClangBuiltin<"__nvvm_rotate_right_b64">;
- def int_nvvm_swap_lo_hi_b64
- : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i64_ty],
- [IntrNoMem, IntrSpeculatable], "llvm.nvvm.swap.lo.hi.b64">,
- ClangBuiltin<"__nvvm_swap_lo_hi_b64">;
- // Accessing special registers.
- multiclass PTXReadSRegIntrinsic_v4i32<string regname> {
- // FIXME: Do we need the 128-bit integer type version?
- // def _r64 : Intrinsic<[llvm_i128_ty], [], [IntrNoMem, IntrSpeculatable]>;
- // FIXME: Enable this once v4i32 support is enabled in back-end.
- // def _v4i16 : Intrinsic<[llvm_v4i32_ty], [], [IntrNoMem, IntrSpeculatable]>;
- def _x : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # regname # "_x">;
- def _y : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # regname # "_y">;
- def _z : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # regname # "_z">;
- def _w : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # regname # "_w">;
- }
- class PTXReadSRegIntrinsic_r32<string name>
- : DefaultAttrsIntrinsic<[llvm_i32_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # name>;
- class PTXReadSRegIntrinsic_r64<string name>
- : DefaultAttrsIntrinsic<[llvm_i64_ty], [], [IntrNoMem, IntrSpeculatable]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # name>;
- // Intrinsics to read registers with non-constant values. E.g. the values that
- // do change over the kernel lifetime. Such reads should not be CSE'd.
- class PTXReadNCSRegIntrinsic_r32<string name>
- : Intrinsic<[llvm_i32_ty], [], [IntrInaccessibleMemOnly, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # name>;
- class PTXReadNCSRegIntrinsic_r64<string name>
- : Intrinsic<[llvm_i64_ty], [], [IntrInaccessibleMemOnly, IntrNoCallback]>,
- ClangBuiltin<"__nvvm_read_ptx_sreg_" # name>;
- defm int_nvvm_read_ptx_sreg_tid : PTXReadSRegIntrinsic_v4i32<"tid">;
- defm int_nvvm_read_ptx_sreg_ntid : PTXReadSRegIntrinsic_v4i32<"ntid">;
- def int_nvvm_read_ptx_sreg_laneid : PTXReadSRegIntrinsic_r32<"laneid">;
- def int_nvvm_read_ptx_sreg_warpid : PTXReadSRegIntrinsic_r32<"warpid">;
- def int_nvvm_read_ptx_sreg_nwarpid : PTXReadSRegIntrinsic_r32<"nwarpid">;
- defm int_nvvm_read_ptx_sreg_ctaid : PTXReadSRegIntrinsic_v4i32<"ctaid">;
- defm int_nvvm_read_ptx_sreg_nctaid : PTXReadSRegIntrinsic_v4i32<"nctaid">;
- def int_nvvm_read_ptx_sreg_smid : PTXReadSRegIntrinsic_r32<"smid">;
- def int_nvvm_read_ptx_sreg_nsmid : PTXReadSRegIntrinsic_r32<"nsmid">;
- def int_nvvm_read_ptx_sreg_gridid : PTXReadSRegIntrinsic_r32<"gridid">;
- def int_nvvm_read_ptx_sreg_lanemask_eq :
- PTXReadSRegIntrinsic_r32<"lanemask_eq">;
- def int_nvvm_read_ptx_sreg_lanemask_le :
- PTXReadSRegIntrinsic_r32<"lanemask_le">;
- def int_nvvm_read_ptx_sreg_lanemask_lt :
- PTXReadSRegIntrinsic_r32<"lanemask_lt">;
- def int_nvvm_read_ptx_sreg_lanemask_ge :
- PTXReadSRegIntrinsic_r32<"lanemask_ge">;
- def int_nvvm_read_ptx_sreg_lanemask_gt :
- PTXReadSRegIntrinsic_r32<"lanemask_gt">;
- def int_nvvm_read_ptx_sreg_clock : PTXReadNCSRegIntrinsic_r32<"clock">;
- def int_nvvm_read_ptx_sreg_clock64 : PTXReadNCSRegIntrinsic_r64<"clock64">;
- def int_nvvm_read_ptx_sreg_pm0 : PTXReadNCSRegIntrinsic_r32<"pm0">;
- def int_nvvm_read_ptx_sreg_pm1 : PTXReadNCSRegIntrinsic_r32<"pm1">;
- def int_nvvm_read_ptx_sreg_pm2 : PTXReadNCSRegIntrinsic_r32<"pm2">;
- def int_nvvm_read_ptx_sreg_pm3 : PTXReadNCSRegIntrinsic_r32<"pm3">;
- def int_nvvm_read_ptx_sreg_warpsize : PTXReadSRegIntrinsic_r32<"warpsize">;
- //
- // SHUFFLE
- //
- // Generate intrinsics for all variants of shfl instruction.
- foreach sync = [false, true] in {
- foreach mode = ["up", "down", "bfly", "idx"] in {
- foreach type = ["i32", "f32"] in {
- foreach return_pred = [false, true] in {
- foreach i = [SHFL_INFO<sync, mode, type, return_pred>] in {
- if i.withGccBuiltin then {
- def i.Name : ClangBuiltin<i.Builtin>,
- Intrinsic<i.RetTy, i.ArgsTy,
- [IntrInaccessibleMemOnly, IntrConvergent,
- IntrNoCallback],
- i.IntrName>;
- }
- if i.withoutGccBuiltin then {
- def i.Name : Intrinsic<i.RetTy, i.ArgsTy,
- [IntrInaccessibleMemOnly, IntrConvergent,
- IntrNoCallback], i.IntrName>;
- }
- }
- }
- }
- }
- }
- //
- // VOTE
- //
- // vote.all pred
- def int_nvvm_vote_all :
- Intrinsic<[llvm_i1_ty], [llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.all">,
- ClangBuiltin<"__nvvm_vote_all">;
- // vote.any pred
- def int_nvvm_vote_any :
- Intrinsic<[llvm_i1_ty], [llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.any">,
- ClangBuiltin<"__nvvm_vote_any">;
- // vote.uni pred
- def int_nvvm_vote_uni :
- Intrinsic<[llvm_i1_ty], [llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.uni">,
- ClangBuiltin<"__nvvm_vote_uni">;
- // vote.ballot pred
- def int_nvvm_vote_ballot :
- Intrinsic<[llvm_i32_ty], [llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.ballot">,
- ClangBuiltin<"__nvvm_vote_ballot">;
- //
- // VOTE.SYNC
- //
- // vote.sync.all mask, pred
- def int_nvvm_vote_all_sync :
- Intrinsic<[llvm_i1_ty], [llvm_i32_ty, llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.all.sync">,
- ClangBuiltin<"__nvvm_vote_all_sync">;
- // vote.sync.any mask, pred
- def int_nvvm_vote_any_sync :
- Intrinsic<[llvm_i1_ty], [llvm_i32_ty, llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.any.sync">,
- ClangBuiltin<"__nvvm_vote_any_sync">;
- // vote.sync.uni mask, pred
- def int_nvvm_vote_uni_sync :
- Intrinsic<[llvm_i1_ty], [llvm_i32_ty, llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.uni.sync">,
- ClangBuiltin<"__nvvm_vote_uni_sync">;
- // vote.sync.ballot mask, pred
- def int_nvvm_vote_ballot_sync :
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i1_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.vote.ballot.sync">,
- ClangBuiltin<"__nvvm_vote_ballot_sync">;
- //
- // MATCH.SYNC
- //
- // match.any.sync.b32 mask, value
- def int_nvvm_match_any_sync_i32 :
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.match.any.sync.i32">,
- ClangBuiltin<"__nvvm_match_any_sync_i32">;
- // match.any.sync.b64 mask, value
- def int_nvvm_match_any_sync_i64 :
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i64_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.match.any.sync.i64">,
- ClangBuiltin<"__nvvm_match_any_sync_i64">;
- // match.all instruction have two variants -- one returns a single value, another
- // returns a pair {value, predicate}. We currently only implement the latter as
- // that's the variant exposed by CUDA API.
- // match.all.sync.b32p mask, value
- def int_nvvm_match_all_sync_i32p :
- Intrinsic<[llvm_i32_ty, llvm_i1_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.match.all.sync.i32p">;
- // match.all.sync.b64p mask, value
- def int_nvvm_match_all_sync_i64p :
- Intrinsic<[llvm_i32_ty, llvm_i1_ty], [llvm_i32_ty, llvm_i64_ty],
- [IntrInaccessibleMemOnly, IntrConvergent, IntrNoCallback], "llvm.nvvm.match.all.sync.i64p">;
- //
- // REDUX.SYNC
- //
- // redux.sync.min.u32 dst, src, membermask;
- def int_nvvm_redux_sync_umin : ClangBuiltin<"__nvvm_redux_sync_umin">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.max.u32 dst, src, membermask;
- def int_nvvm_redux_sync_umax : ClangBuiltin<"__nvvm_redux_sync_umax">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.add.s32 dst, src, membermask;
- def int_nvvm_redux_sync_add : ClangBuiltin<"__nvvm_redux_sync_add">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.min.s32 dst, src, membermask;
- def int_nvvm_redux_sync_min : ClangBuiltin<"__nvvm_redux_sync_min">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.max.s32 dst, src, membermask;
- def int_nvvm_redux_sync_max : ClangBuiltin<"__nvvm_redux_sync_max">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.and.b32 dst, src, membermask;
- def int_nvvm_redux_sync_and : ClangBuiltin<"__nvvm_redux_sync_and">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.xor.b32 dst, src, membermask;
- def int_nvvm_redux_sync_xor : ClangBuiltin<"__nvvm_redux_sync_xor">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- // redux.sync.or.b32 dst, src, membermask;
- def int_nvvm_redux_sync_or : ClangBuiltin<"__nvvm_redux_sync_or">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty],
- [IntrConvergent, IntrInaccessibleMemOnly, IntrNoCallback]>;
- //
- // WMMA instructions
- //
- // WMMA.LOAD
- class NVVM_WMMA_LD<WMMA_REGS Frag, string Layout, int WithStride>
- : Intrinsic<Frag.regs,
- !if(WithStride, [llvm_anyptr_ty, llvm_i32_ty], [llvm_anyptr_ty]),
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, ReadOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>],
- WMMA_NAME_LDST<"load", Frag, Layout, WithStride>.intr>;
- // WMMA.STORE.D
- class NVVM_WMMA_ST<WMMA_REGS Frag, string Layout, int WithStride>
- : Intrinsic<[],
- !listconcat(
- [llvm_anyptr_ty],
- Frag.regs,
- !if(WithStride, [llvm_i32_ty], [])),
- [IntrWriteMem, IntrArgMemOnly, IntrNoCallback, WriteOnly<ArgIndex<0>>, NoCapture<ArgIndex<0>>],
- WMMA_NAME_LDST<"store", Frag, Layout, WithStride>.intr>;
- // Create all load/store variants
- foreach layout = ["row", "col"] in {
- foreach stride = [0, 1] in {
- foreach frag = NVVM_MMA_OPS.all_ld_ops in
- if NVVM_WMMA_LDST_SUPPORTED<frag, layout>.ret then
- def WMMA_NAME_LDST<"load", frag, layout, stride>.record
- : NVVM_WMMA_LD<frag, layout, stride>;
- foreach frag = NVVM_MMA_OPS.all_st_ops in
- if NVVM_WMMA_LDST_SUPPORTED<frag, layout>.ret then
- def WMMA_NAME_LDST<"store", frag, layout, stride>.record
- : NVVM_WMMA_ST<frag, layout, stride>;
- }
- }
- // WMMA.MMA
- class NVVM_WMMA_MMA<string ALayout, string BLayout, int Satfinite, string rnd, string b1op,
- WMMA_REGS A, WMMA_REGS B,
- WMMA_REGS C, WMMA_REGS D>
- : Intrinsic<D.regs,
- !listconcat(A.regs, B.regs, C.regs),
- [IntrNoMem, IntrNoCallback],
- WMMA_NAME<ALayout, BLayout, Satfinite, rnd, b1op, A, B, C, D>.llvm>;
- foreach layout_a = ["row", "col"] in {
- foreach layout_b = ["row", "col"] in {
- foreach satf = [0, 1] in {
- foreach rnd = ["", "rn", "rz", "rm", "rp"] in {
- foreach op = NVVM_MMA_OPS.all_wmma_ops in {
- foreach b1op = NVVM_MMA_B1OPS<op>.ret in {
- if NVVM_WMMA_SUPPORTED<op, layout_a, layout_b, satf, rnd>.ret then {
- def WMMA_NAME<layout_a, layout_b, satf, rnd, b1op,
- op[0], op[1], op[2], op[3]>.record
- : NVVM_WMMA_MMA<layout_a, layout_b, satf, rnd, b1op,
- op[0], op[1], op[2], op[3]>;
- }
- } // b1op
- } // op
- } // rnd
- } // satf
- } // layout_b
- } // layout_a
- // MMA
- class NVVM_MMA<string ALayout, string BLayout, int Satfinite, string b1op,
- WMMA_REGS A, WMMA_REGS B, WMMA_REGS C, WMMA_REGS D>
- : Intrinsic<D.regs,
- !listconcat(A.regs, B.regs, C.regs),
- [IntrNoMem, IntrNoCallback],
- MMA_NAME<ALayout, BLayout, Satfinite, b1op, A, B, C, D>.llvm>;
- foreach layout_a = ["row", "col"] in {
- foreach layout_b = ["row", "col"] in {
- foreach satf = [0, 1] in {
- foreach op = NVVM_MMA_OPS.all_mma_ops in {
- foreach b1op = NVVM_MMA_B1OPS<op>.ret in {
- if NVVM_MMA_SUPPORTED<op, layout_a, layout_b, satf>.ret then {
- def MMA_NAME<layout_a, layout_b, satf, b1op, op[0], op[1], op[2], op[3]>.record
- : NVVM_MMA<layout_a, layout_b, satf, b1op, op[0], op[1], op[2], op[3]>;
- }
- } // b1op
- } // op
- } // satf
- } // layout_b
- } // layout_a
- // LDMATRIX
- class NVVM_LDMATRIX<WMMA_REGS Frag, int Transposed>
- : Intrinsic<Frag.regs, [llvm_anyptr_ty],
- [IntrReadMem, IntrArgMemOnly, IntrNoCallback, ReadOnly<ArgIndex<0>>,
- NoCapture<ArgIndex<0>>],
- LDMATRIX_NAME<Frag, Transposed>.intr>;
- foreach transposed = [0, 1] in {
- foreach frag = NVVM_MMA_OPS.all_ldmatrix_ops in {
- if NVVM_LDMATRIX_SUPPORTED<frag>.ret then {
- def LDMATRIX_NAME<frag, transposed>.record
- : NVVM_LDMATRIX<frag, transposed>;
- }
- }
- }
- } // let TargetPrefix = "nvvm"
|