Home
last modified time | relevance | path

Searched refs:GR (Results 1 – 25 of 74) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVISelLowering.cpp30 SPIRVGlobalRegistry &GR) { in typesLogicallyMatch() argument
42 SPIRVType *ElemType1 = GR.getSPIRVTypeForVReg(Ty1->getOperand(1).getReg()); in typesLogicallyMatch()
43 SPIRVType *ElemType2 = GR.getSPIRVTypeForVReg(Ty2->getOperand(1).getReg()); in typesLogicallyMatch()
45 typesLogicallyMatch(ElemType1, ElemType2, GR); in typesLogicallyMatch()
51 GR.getSPIRVTypeForVReg(Ty1->getOperand(I).getReg()); in typesLogicallyMatch()
53 GR.getSPIRVTypeForVReg(Ty2->getOperand(I).getReg()); in typesLogicallyMatch()
55 !typesLogicallyMatch(ElemType1, ElemType2, GR)) in typesLogicallyMatch()
146 SPIRVGlobalRegistry &GR, MachineInstr &I, in doInsertBitcast() argument
150 Register NewReg = createVirtualRegister(NewPtrType, &GR, MRI, MIB.getMF()); in doInsertBitcast()
153 .addUse(GR.getSPIRVTypeID(NewPtrType)) in doInsertBitcast()
[all …]
H A DSPIRVBuiltins.cpp443 SPIRVGlobalRegistry *GR) { in buildBoolRegister() argument
445 SPIRVType *BoolType = GR->getOrCreateSPIRVBoolType(MIRBuilder, true); in buildBoolRegister()
449 BoolType = GR->getOrCreateSPIRVVectorType(BoolType, VectorElements, in buildBoolRegister()
452 cast<FixedVectorType>(GR->getTypeForSPIRVType(BoolType)); in buildBoolRegister()
460 MIRBuilder.getMRI()->setRegClass(ResultRegister, GR->getRegClass(ResultType)); in buildBoolRegister()
461 GR->assignSPIRVTypeToVReg(BoolType, ResultRegister, MIRBuilder.getMF()); in buildBoolRegister()
470 SPIRVGlobalRegistry *GR) { in buildSelectInst() argument
474 unsigned Bits = GR->getScalarOrVectorBitWidth(ReturnType); in buildSelectInst()
477 GR->getOrCreateConsIntVector(AllOnes, MIRBuilder, ReturnType, true); in buildSelectInst()
478 FalseConst = GR->getOrCreateConsIntVector(0, MIRBuilder, ReturnType, true); in buildSelectInst()
[all …]
H A DSPIRVPreLegalizer.cpp45 addConstantsToTrack(MachineFunction &MF, SPIRVGlobalRegistry *GR, in addConstantsToTrack() argument
62 Register Reg = GR->find(GV, &MF); in addConstantsToTrack()
64 GR->add(GV, MRI.getVRegDef(SrcReg)); in addConstantsToTrack()
65 GR->addGlobalObject(GV, &MF, SrcReg); in addConstantsToTrack()
69 Register Reg = GR->find(Const, &MF); in addConstantsToTrack()
75 GR->add(Const, BuildVec); in addConstantsToTrack()
80 Register ElemReg = GR->find(ElemConst, &MF); in addConstantsToTrack()
82 GR->add(ElemConst, in addConstantsToTrack()
92 GR->add(Const, SrcMI); in addConstantsToTrack()
99 SPIRVType *ExtType = GR->getOrCreateSPIRVType( in addConstantsToTrack()
[all …]
H A DSPIRVCallLowering.cpp32 SPIRVGlobalRegistry *GR) in SPIRVCallLowering() argument
33 : CallLowering(&TLI), GR(GR) {} in SPIRVCallLowering()
107 fixFunctionTypeIfPtrArgs(SPIRVGlobalRegistry *GR, const Function &F, in fixFunctionTypeIfPtrArgs() argument
127 const Type *RetTy = GR->getTypeForSPIRVType(SRetTy); in fixFunctionTypeIfPtrArgs()
130 ArgTys.push_back(const_cast<Type *>(GR->getTypeForSPIRVType(SArgTy))); in fixFunctionTypeIfPtrArgs()
200 SPIRVGlobalRegistry *GR, in getArgSPIRVType() argument
212 return GR->getOrCreateSPIRVType(OriginalArgType, MIRBuilder, ArgAccessQual, in getArgSPIRVType()
218 return GR->getOrCreateSPIRVPointerType( in getArgSPIRVType()
232 return GR->getOrCreateSPIRVPointerType( in getArgSPIRVType()
245 return GR->getOrCreateSPIRVType(BuiltinType, MIRBuilder, ArgAccessQual, in getArgSPIRVType()
[all …]
H A DSPIRVPostLegalizer.cpp39 SPIRVGlobalRegistry *GR, MachineIRBuilder &MIB,
42 MachineRegisterInfo &MRI, SPIRVGlobalRegistry *GR,
62 static void processNewInstrs(MachineFunction &MF, SPIRVGlobalRegistry *GR, in processNewInstrs() argument
75 SrcReg.isValid() ? GR->getSPIRVTypeForVReg(SrcReg) : nullptr; in processNewInstrs()
80 GR->getSPIRVTypeForVReg(DefType->getOperand(1).getReg()); in processNewInstrs()
83 SPIRVType *ResType = GR->getSPIRVTypeForVReg(ResVReg); in processNewInstrs()
87 setRegClassType(ResVReg, ResType, GR, &MRI, *GR->CurMF, true); in processNewInstrs()
100 SPIRVType *ResVType = GR->getSPIRVTypeForVReg( in processNewInstrs()
106 setRegClassType(ResVReg, ResVType, GR, &MRI, *GR->CurMF, true); in processNewInstrs()
110 processInstr(I, MIB, MRI, GR, GR->getSPIRVTypeForVReg(ResVReg)); in processNewInstrs()
[all …]
H A DSPIRVInstructionSelector.cpp67 SPIRVGlobalRegistry &GR; member in __anonce99e1400111::SPIRVInstructionSelector
362 TRI(*ST.getRegisterInfo()), RBI(RBI), GR(*ST.getSPIRVGlobalRegistry()), in SPIRVInstructionSelector()
378 GR.setCurrentFunc(MF); in setupMF()
402 GR.erase(&MI); in resetVRegsType()
526 GR.invalidateMachineInstr(&I); in select()
541 GR.invalidateMachineInstr(&I); in select()
555 SPIRVType *ResType = HasDefs ? GR.getSPIRVTypeForVReg(ResVReg) : nullptr; in select()
562 GR.invalidateMachineInstr(&I); in select()
628 .addUse(GR.getSPIRVTypeID(ResType)) in spvSelect()
846 SPIRVType *GVType = GR.getSPIRVTypeForVReg(GV); in spvSelect()
[all …]
H A DSPIRVEmitIntrinsics.cpp60 SPIRVGlobalRegistry *GR = nullptr; member in __anon21a763720111::SPIRVEmitIntrinsics
320 GR->replaceAllUsesWith(Src, Dest, DeleteOld); in replaceAllUsesWith()
350 static inline Type *restoreMutatedType(SPIRVGlobalRegistry *GR, Instruction *I, in restoreMutatedType() argument
356 if (Type *OriginalTy = GR->findMutated(CI->getCalledFunction())) in restoreMutatedType()
367 Ty = restoreMutatedType(GR, OpI, Ty); in reconstructType()
371 if (Type *NestedTy = GR->findDeducedElementType(Op)) in reconstructType()
374 CallInst *CI = GR->findAssignPtrTypeInstr(Op); in reconstructType()
407 GR->buildAssignPtr(B, ElemTy, PtrCasted); in buildSpvPtrcast()
515 if (Type *KnownTy = GR->findDeducedElementType(Op)) in deduceElementTypeByUsersDeep()
581 if (Type *KnownTy = GR->findDeducedElementType(I)) in deduceElementTypeHelper()
[all …]
H A DSPIRVEmitNonSemanticDI.cpp167 SPIRVGlobalRegistry *GR = TM->getSubtargetImpl()->getSPIRVGlobalRegistry(); in emitGlobalDI() local
186 GR->getOrCreateSPIRVType(Type::getVoidTy(*Context), MIRBuilder, in emitGlobalDI()
198 .addUse(GR->getSPIRVTypeID(VoidTy)) in emitGlobalDI()
206 GR->assignSPIRVTypeToVReg(VoidTy, InstReg, MF); in emitGlobalDI()
211 GR->getOrCreateSPIRVType(Type::getInt32Ty(*Context), MIRBuilder, in emitGlobalDI()
215 GR->buildConstantInt(DwarfVersion, MIRBuilder, I32Ty, false); in emitGlobalDI()
218 GR->buildConstantInt(DebugInfoVersion, MIRBuilder, I32Ty, false); in emitGlobalDI()
251 GR->buildConstantInt(SpirvSourceLanguage, MIRBuilder, I32Ty, false); in emitGlobalDI()
263 GR->buildConstantInt(0, MIRBuilder, I32Ty, false, false); in emitGlobalDI()
273 const Register ConstIntBitwidthReg = GR->buildConstantInt( in emitGlobalDI()
[all …]
H A DSPIRVLegalizePointerCast.cpp68 GR->addAssignPtrTypeInstr(Arg, AssignCI); in buildAssignType()
102 GR->buildAssignPtr(B, ElementType, GEP); in loadFirstValueFromAggregate()
114 Type *FromTy = GR->findDeducedElementType(OriginalOperand); in transformLoad()
115 Type *ToTy = GR->findDeducedElementType(CastedOperand); in transformLoad()
150 GR->replaceAllUsesWith(LI, Output, /* DeleteOld= */ true); in transformLoad()
186 cast<FixedVectorType>(GR->findDeducedElementType(Dst)); in storeVectorFromVector()
230 GR->buildAssignPtr(B, Src->getType(), GEP); in storeToFirstValueAggregate()
252 Type *ToTy = GR->findDeducedElementType(Dst); in transformStore()
300 GR->replaceAllUsesWith(CastedOperand, OriginalOperand, in legalizePointerCast()
326 GR = ST.getSPIRVGlobalRegistry(); in runOnFunction()
[all …]
H A DSPIRVUtils.cpp768 void setRegClassType(Register Reg, SPIRVType *SpvType, SPIRVGlobalRegistry *GR, in setRegClassType() argument
771 GR->assignSPIRVTypeToVReg(SpvType, Reg, MF); in setRegClassType()
773 MRI->setRegClass(Reg, GR->getRegClass(SpvType)); in setRegClassType()
774 MRI->setType(Reg, GR->getRegType(SpvType)); in setRegClassType()
781 void setRegClassType(Register Reg, const Type *Ty, SPIRVGlobalRegistry *GR, in setRegClassType() argument
786 GR->getOrCreateSPIRVType(Ty, MIRBuilder, AccessQual, EmitIR), in setRegClassType()
787 GR, MIRBuilder.getMRI(), MIRBuilder.getMF(), Force); in setRegClassType()
792 Register createVirtualRegister(SPIRVType *SpvType, SPIRVGlobalRegistry *GR, in createVirtualRegister() argument
795 Register Reg = MRI->createVirtualRegister(GR->getRegClass(SpvType)); in createVirtualRegister()
796 MRI->setType(Reg, GR->getRegType(SpvType)); in createVirtualRegister()
[all …]
H A DSPIRVLegalizerInfo.cpp38 GR = ST.getSPIRVGlobalRegistry(); in SPIRVLegalizerInfo()
345 SPIRVGlobalRegistry *GR) { in convertPtrToInt() argument
347 MRI.setRegClass(ConvReg, GR->getRegClass(SpvType)); in convertPtrToInt()
348 GR->assignSPIRVTypeToVReg(SpvType, ConvReg, Helper.MIRBuilder.getMF()); in convertPtrToInt()
361 assert(GR->getSPIRVTypeForVReg(MI.getOperand(0).getReg())); in legalizeCustom()
374 SPIRVType *SpirvTy = GR->getOrCreateSPIRVType( in legalizeCustom()
376 Op0.setReg(convertPtrToInt(Reg0, ConvT, SpirvTy, Helper, MRI, GR)); in legalizeCustom()
377 Op1.setReg(convertPtrToInt(Reg1, ConvT, SpirvTy, Helper, MRI, GR)); in legalizeCustom()
H A DSPIRVSubtarget.h50 std::unique_ptr<SPIRVGlobalRegistry> GR; variable
84 unsigned getBound() const { return GR->getBound(); } in getBound()
119 SPIRVGlobalRegistry *getSPIRVGlobalRegistry() const { return GR.get(); } in getSPIRVGlobalRegistry()
H A DSPIRVCallLowering.h27 SPIRVGlobalRegistry *GR;
41 SPIRVCallLowering(const SPIRVTargetLowering &TLI, SPIRVGlobalRegistry *GR);
H A DSPIRVBuiltins.h42 SPIRVGlobalRegistry *GR);
85 SPIRVGlobalRegistry *GR);
H A DSPIRVPreLegalizerCombiner.cpp96 SPIRVGlobalRegistry *GR = in applySPIRVDistance() local
104 GR->invalidateMachineInstr(MIToErase); in applySPIRVDistance()
109 GR->invalidateMachineInstr(SubInstr); in applySPIRVDistance()
H A DSPIRVUtils.h455 void setRegClassType(Register Reg, const Type *Ty, SPIRVGlobalRegistry *GR,
460 SPIRVGlobalRegistry *GR, MachineRegisterInfo *MRI,
463 SPIRVGlobalRegistry *GR,
467 SPIRVGlobalRegistry *GR,
470 const Type *Ty, SPIRVGlobalRegistry *GR, MachineIRBuilder &MIRBuilder,
/freebsd/share/i18n/csmapper/KOI/
H A Dmapper.dir.KOI.src5 GOST19768-74:GR/GOST19768-74 mapper_zone 0x00 - 0x7F : +0x80
6 GOST19768-74/GOST19768-74:GR mapper_zone 0x80 - 0xFF : -0x80
7 GOST19768-74:GR/UCS mapper_serial GOST19768-74:GR/GOST19768-74,GOST19768-74/UCS
8 UCS/GOST19768-74:GR mapper_serial UCS/GOST19768-74,GOST19768-74/GOST19768-74:GR
11 ISO-5427/UCS mapper_parallel GOST19768-74:GR/UCS,ISO-5427EXT/UCS
12 UCS/ISO-5427 mapper_parallel UCS/GOST19768-74:GR,UCS/ISO-5427EXT
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DRecordVisitor.cpp30 void SymbolConverter::visitGlobal(const GlobalRecord &GR) { in visitGlobal() argument
31 auto [SymName, SymKind, InterfaceType] = parseSymbol(GR.getName()); in visitGlobal()
32 if (shouldSkipRecord(GR, RecordUndefs)) in visitGlobal()
34 Symbols->addGlobal(SymKind, SymName, GR.getFlags(), Targ); in visitGlobal()
37 Symbols->addGlobal(SymKind, SymName, GR.getFlags(), Targ); in visitGlobal()
43 Symbols->addGlobal(EncodeKind::GlobalSymbol, GR.getName(), GR.getFlags(), in visitGlobal()
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp243 auto [GR, FA] = Ctx.Slice->addGlobal(getMangledName(D), Linkage, in VisitVarDecl()
246 Ctx.Verifier->verify(GR, FA); in VisitVarDecl()
296 auto [GR, FA] = in VisitFunctionDecl()
299 Ctx.Verifier->verify(GR, FA); in VisitFunctionDecl()
489 auto [GR, FA] = Ctx.Slice->addGlobal(Name, RecordLinkage::Exported, in emitVTableSymbols()
492 Ctx.Verifier->verify(GR, FA); in emitVTableSymbols()
504 auto [GR, FA] = Ctx.Slice->addGlobal(Name, RecordLinkage::Exported, in emitVTableSymbols()
507 Ctx.Verifier->verify(GR, FA); in emitVTableSymbols()
533 auto [GR, FA] = in emitVTableSymbols()
536 Ctx.Verifier->verify(GR, FA); in emitVTableSymbols()
[all …]
H A DFrontend.cpp23 GlobalRecord *GR = in addGlobal() local
26 {GR, FrontendAttrs{Avail, D, D->getLocation(), Access}}); in addGlobal()
27 return {GR, &(Result.first->second)}; in addGlobal()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/GSYM/
H A DInlineInfo.cpp108 static bool lookup(const GsymReader &GR, DataExtractor &Data, uint64_t &Offset, in lookup() argument
134 Done = lookup(GR, Data, Offset, ChildBaseAddr, Addr, SrcLocs, Err); in lookup()
137 std::optional<FileEntry> CallFile = GR.getFile(Inline.CallFile); in lookup()
149 SrcLoc.Dir = GR.getString(CallFile->Dir); in lookup()
150 SrcLoc.Base = GR.getString(CallFile->Base); in lookup()
152 SrcLocs.back().Name = GR.getString(Inline.Name); in lookup()
159 llvm::Error InlineInfo::lookup(const GsymReader &GR, DataExtractor &Data, in lookup() argument
165 ::lookup(GR, Data, Offset, BaseAddr, Addr, SrcLocs, Err); in lookup()
H A DFunctionInfo.cpp239 FunctionInfo::lookup(DataExtractor &Data, const GsymReader &GR, in lookup() argument
264 LR.FuncName = GR.getString(NameOffset); in lookup()
312 LR.CallSiteFuncRegex.push_back(GR.getString(RegexOffset)); in lookup()
338 std::optional<FileEntry> LineEntryFile = GR.getFile(LineEntry->File); in lookup()
347 SrcLoc.Dir = GR.getString(LineEntryFile->Dir); in lookup()
348 SrcLoc.Base = GR.getString(LineEntryFile->Base); in lookup()
356 llvm::Error Err = InlineInfo::lookup(GR, *InlineInfoData, FuncAddr, Addr, in lookup()
/freebsd/contrib/llvm-project/llvm/tools/llvm-xray/
H A Dxray-graph.cpp465 xray::GraphRenderer GR(FuncIdHelper, DeduceSiblingCalls); in getGraphRenderer() local
467 auto E = GR.accountRecord(Record); in getGraphRenderer()
471 for (const auto &ThreadStack : GR.getPerThreadFunctionStack()) { in getGraphRenderer()
489 GR.G.GraphEdgeMax = {}; in getGraphRenderer()
490 GR.G.GraphVertexMax = {}; in getGraphRenderer()
491 GR.calculateEdgeStatistics(); in getGraphRenderer()
492 GR.calculateVertexStatistics(); in getGraphRenderer()
495 GR.normalizeStatistics(Header.CycleFrequency); in getGraphRenderer()
497 return GR; in getGraphRenderer()
526 auto &GR = *GROrError; in __anon4662d1480302() local
[all …]
/freebsd/share/i18n/esdb/MISC/
H A DHZ8.src5 VARIABLE "0='CH:};GL:ASCII','CH:{;GR:GB2312'"
7 DEFCSID "ISO-8859-1:GR" 0x80
/freebsd/lib/libiconv_modules/HZ/
H A Dcitrus_hz.c102 #define GR(escape) ((escape)->right) macro
220 graphic = GR(psenc->inuse); in _citrus_HZ_mbrtowc_priv()
268 if (graphic != GR(psenc->inuse)) in _citrus_HZ_mbrtowc_priv()
499 free(GR(escape)); in _citrus_HZ_encoding_module_uninit()
505 free(GR(escape)); in _citrus_HZ_encoding_module_uninit()
546 if (GR(escape) != NULL) in _citrus_HZ_parse_graphic()
548 GR(escape) = graphic; in _citrus_HZ_parse_graphic()

123