Home
last modified time | relevance | path

Searched refs:createGlobal (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DProgram.cpp130 if (auto Idx = createGlobal(VD)) { in getOrCreateGlobal()
149 if (auto Idx = createGlobal(PD, Ty, /*isStatic=*/true, /*isExtern=*/true)) { in getOrCreateDummy()
156 llvm::Optional<unsigned> Program::createGlobal(const ValueDecl *VD) { in createGlobal() function in Program
165 if (auto Idx = createGlobal(VD, VD->getType(), IsStatic, IsExtern)) { in createGlobal()
173 llvm::Optional<unsigned> Program::createGlobal(const Expr *E) { in createGlobal() function in Program
174 return createGlobal(E, E->getType(), /*isStatic=*/true, /*isExtern=*/false); in createGlobal()
177 llvm::Optional<unsigned> Program::createGlobal(const DeclTy &D, QualType Ty, in createGlobal() function in Program
H A DProgram.h72 llvm::Optional<unsigned> createGlobal(const ValueDecl *VD);
75 llvm::Optional<unsigned> createGlobal(const Expr *E);
136 llvm::Optional<unsigned> createGlobal(const DeclTy &D, QualType Ty,
H A DByteCodeExprGen.cpp534 if (Optional<unsigned> I = P.createGlobal(VD)) { in visitDecl()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFIRBuilder.h176 fir::GlobalOp createGlobal(mlir::Location loc, mlir::Type type,
181 fir::GlobalOp createGlobal(mlir::Location loc, mlir::Type type,
191 return createGlobal(loc, type, name, linkage, value, /*isConst=*/true);
199 return createGlobal(loc, type, name, /*isConst=*/true, bodyBuilder,
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h77 llvm::GlobalVariable *createGlobal(llvm::Constant *initializer,
390 return this->Builder.createGlobal(asImpl().finishImpl(), in finishAndCreateGlobal()
/llvm-project-15.0.7/lld/wasm/
H A DDriver.cpp582 static InputGlobal *createGlobal(StringRef name, bool isMutable) { in createGlobal() function
592 InputGlobal *g = createGlobal(name, isMutable); in createGlobalVariable()
597 InputGlobal *g = createGlobal(name, isMutable); in createOptionalGlobal()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp67 ConstantInitBuilderBase::createGlobal(llvm::Constant *initializer, in createGlobal() function in ConstantInitBuilderBase
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertVariable.cpp136 return builder.createGlobal(loc, converter.genType(var), globalName, linkage, in declareGlobal()
420 global = builder.createGlobal(loc, symTy, globalName, linkage, in defineGlobal()
679 global = builder.createGlobal(loc, aggTy, aggName, linkage); in defineGlobalAggregateStore()
723 return builder.createGlobal(loc, aggTy, aggName, linkage); in declareGlobalAggregateStore()
955 builder.createGlobal(loc, commonTy, commonName, linkage, init); in declareCommonBlock()
967 global = builder.createGlobal(loc, commonTy, commonName); in declareCommonBlock()
H A DIO.cpp384 builder.createGlobal(loc, groupTy, groupMangleName, in getNamelistGroup()
H A DConvertExpr.cpp7464 return builder.createGlobal(loc, symTy, globalName, linkage, init, isConst); in createDenseGlobal()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp188 auto global = builder.createGlobal( in TEST_F()
212 auto global = builder.createGlobal( in TEST_F()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp239 fir::FirOpBuilder::createGlobal(mlir::Location loc, mlir::Type type, in createGlobal() function in fir::FirOpBuilder
252 fir::GlobalOp fir::FirOpBuilder::createGlobal( in createGlobal() function in fir::FirOpBuilder