Lines Matching full:emitter
562 ConstantEmitter &Emitter; member in __anon9d6f04f10111::ConstStructBuilder
567 static llvm::Constant *BuildStruct(ConstantEmitter &Emitter,
570 static llvm::Constant *BuildStruct(ConstantEmitter &Emitter,
572 static bool UpdateStruct(ConstantEmitter &Emitter,
577 ConstStructBuilder(ConstantEmitter &Emitter, in ConstStructBuilder() argument
579 : CGM(Emitter.CGM), Emitter(Emitter), Builder(Builder), in ConstStructBuilder()
653 static bool EmitDesignatedInitUpdater(ConstantEmitter &Emitter, in EmitDesignatedInitUpdater() argument
658 return ConstStructBuilder::UpdateStruct(Emitter, Const, Offset, Updater); in EmitDesignatedInitUpdater()
660 auto CAT = Emitter.CGM.getContext().getAsConstantArrayType(Type); in EmitDesignatedInitUpdater()
664 CharUnits ElemSize = Emitter.CGM.getContext().getTypeSizeInChars(ElemType); in EmitDesignatedInitUpdater()
665 llvm::Type *ElemTy = Emitter.CGM.getTypes().ConvertTypeForMem(ElemType); in EmitDesignatedInitUpdater()
670 FillC = Emitter.tryEmitAbstractForMemory(Filler, ElemType); in EmitDesignatedInitUpdater()
689 if (!EmitDesignatedInitUpdater(Emitter, Const, Offset, ElemType, in EmitDesignatedInitUpdater()
695 llvm::Constant *Val = Emitter.tryEmitPrivateForMemory(Init, ElemType); in EmitDesignatedInitUpdater()
754 if (!EmitDesignatedInitUpdater(Emitter, Builder, StartOffset + Offset, in Build()
766 Init ? Emitter.tryEmitPrivateForMemory(Init, Field->getType()) in Build()
767 : Emitter.emitNullForMemory(Field->getType()); in Build()
818 VTableAddressPoint = Emitter.tryEmitConstantSignedPointer( in Build()
869 Emitter.tryEmitPrivateForMemory(FieldValue, Field->getType()); in Build()
900 llvm::Constant *ConstStructBuilder::BuildStruct(ConstantEmitter &Emitter, in BuildStruct() argument
903 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct()
904 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct()
912 llvm::Constant *ConstStructBuilder::BuildStruct(ConstantEmitter &Emitter, in BuildStruct() argument
915 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct()
916 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct()
926 bool ConstStructBuilder::UpdateStruct(ConstantEmitter &Emitter, in UpdateStruct() argument
930 return ConstStructBuilder(Emitter, Const, Offset) in UpdateStruct()
939 tryEmitGlobalCompoundLiteral(ConstantEmitter &emitter, in tryEmitGlobalCompoundLiteral() argument
941 CodeGenModule &CGM = emitter.CGM; in tryEmitGlobalCompoundLiteral()
948 llvm::Constant *C = emitter.tryEmitForInitializer(E->getInitializer(), in tryEmitGlobalCompoundLiteral()
962 emitter.finalize(GV); in tryEmitGlobalCompoundLiteral()
1039 ConstantEmitter &Emitter; member in __anon9d6f04f10111::ConstExprEmitter
1042 ConstExprEmitter(ConstantEmitter &emitter) in ConstExprEmitter() argument
1043 : CGM(emitter.CGM), Emitter(emitter), VMContext(CGM.getLLVMContext()) { in ConstExprEmitter()
1053 if (llvm::Constant *Result = Emitter.tryEmitConstantExpr(CE)) in VisitConstantExpr()
1102 CGM.EmitExplicitCastExprType(ECE, Emitter.CGF); in VisitCastExpr()
1113 auto C = Emitter.tryEmitPrivateForMemory(subExpr, field->getType()); in VisitCastExpr()
1143 auto C = Emitter.tryEmitPrivate(subExpr, subExpr->getType()); in VisitCastExpr()
1192 auto C = Emitter.tryEmitPrivate(subExpr, subExpr->getType()); in VisitCastExpr()
1315 fillC = Emitter.tryEmitAbstractForMemory(filler, EltType); in EmitArrayInitialization()
1330 C = Emitter.tryEmitPrivateForMemory(Init, EltType); in EmitArrayInitialization()
1357 C = Emitter.tryEmitPrivateForMemory( in EmitArrayInitialization()
1386 return ConstStructBuilder::BuildStruct(Emitter, ILE, T); in EmitRecordInitialization()
1417 if (!EmitDesignatedInitUpdater(Emitter, Const, CharUnits::Zero(), destType, in VisitDesignatedInitUpdateExpr()
1743 "finalizing emitter that was used for abstract emission?"); in finalize()
1744 assert(!Finalized && "finalizing emitter multiple times"); in finalize()
1838 /// emitter is in an abstract mode.
1852 // We can't do this if the emitter is in an abstract state. in tryEmitConstantSignedPointer()
1972 ConstantEmitter &Emitter; member in __anon9d6f04f10b11::ConstantLValueEmitter
1981 ConstantLValueEmitter(ConstantEmitter &emitter, const APValue &value, in ConstantLValueEmitter() argument
1984 : CGM(emitter.CGM), Emitter(emitter), Value(value), DestType(destType), in ConstantLValueEmitter()
2167 if (llvm::Constant *Result = Emitter.tryEmitConstantExpr(E)) in VisitConstantExpr()
2174 ConstantEmitter CompoundLiteralEmitter(CGM, Emitter.CGF); in VisitCompoundLiteralExpr()
2175 CompoundLiteralEmitter.setInConstantContext(Emitter.isInConstantContext()); in VisitCompoundLiteralExpr()
2216 assert(Emitter.CGF && "Invalid address of label expression outside function"); in VisitAddrLabelExpr()
2217 llvm::Constant *Ptr = Emitter.CGF->GetAddrOfLabel(E->getLabel()); in VisitAddrLabelExpr()
2266 return ConstantEmitter(CGM, Emitter.CGF) in emitPointerAuthPointer()
2298 if (auto CGF = Emitter.CGF) in VisitBlockExpr()
2481 ConstantEmitter emitter(*this); in GetAddrOfConstantCompoundLiteral() local
2482 return tryEmitGlobalCompoundLiteral(emitter, E); in GetAddrOfConstantCompoundLiteral()