reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/ObjCARCAnalysisUtils.h
  227       if (GV->isConstant())
lib/Analysis/BasicAliasAnalysis.cpp
  676       if (!GV->isConstant()) {
lib/Analysis/ConstantFolding.cpp
  557   if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer() ||
  625     if (GV->isConstant() && GV->hasDefinitiveInitializer())
  639       if (GV->isConstant() && GV->hasDefinitiveInitializer()) {
  688     if (GV->isConstant() && GV->hasDefinitiveInitializer()) {
lib/Analysis/GlobalsModRef.cpp
  303                                 GV.isConstant() ? nullptr : &Writers)) {
  317         if (!GV.isConstant()) // No need to keep track of writers to constants
lib/Analysis/Lint.cpp
  436       Assert(!GV->isConstant(), "Undefined behavior: Write to read-only memory",
lib/Analysis/LoopUnrollAnalyzer.cpp
  105   if (!GV || !GV->hasDefinitiveInitializer() || !GV->isConstant())
lib/Analysis/ModuleSummaryAnalysis.cpp
  530   if (!V.isConstant())
lib/Analysis/ScalarEvolution.cpp
 7506   if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer() ||
lib/Analysis/ValueLatticeUtils.cpp
   28   if (GV->isConstant() || !GV->hasLocalLinkage() ||
lib/Analysis/ValueTracking.cpp
 3506   if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer())
lib/Bitcode/Writer/BitcodeWriter.cpp
 1271     Vals.push_back(GV.getType()->getAddressSpace() << 2 | 2 | GV.isConstant());
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1248       !GV->isConstant() || !GV->isDiscardableIfUnused() ||
lib/CodeGen/GlobalMerge.cpp
  643       else if (GV.isConstant())
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  326       Dst, GV.getValueType(), GV.isConstant(),
lib/IR/AsmWriter.cpp
 3284   Out << (GV->isConstant() ? "constant " : "global ");
lib/IR/Core.cpp
 2143   return unwrap<GlobalVariable>(GlobalVar)->isConstant();
lib/IR/Globals.cpp
  326     if (!Var->isConstant())
lib/IR/Verifier.cpp
  631       Assert(!GV.isConstant(), "'common' global may not be marked constant!",
 4291     Assert(GV && GV->isConstant() && GV->hasDefinitiveInitializer(),
lib/LTO/LTOModule.cpp
  425     if (gv && gv->isConstant())
lib/Linker/IRMover.cpp
  628                          SGVar->isConstant(), GlobalValue::ExternalLinkage,
  880     if (DstGV->isConstant() != SrcGV->isConstant())
  880     if (DstGV->isConstant() != SrcGV->isConstant())
  919       DstM, NewType, SrcGV->isConstant(), SrcGV->getLinkage(),
lib/Linker/LinkModules.cpp
  349           (!DGVar->isConstant() || !SGVar->isConstant())) {
  349           (!DGVar->isConstant() || !SGVar->isConstant())) {
lib/Object/ModuleSymbolTable.cpp
  196     if (GVar->isConstant())
lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
  102     if (GV->isConstant())
lib/Target/ARM/ARMISelLowering.cpp
 3341       !GVar->isConstant() || !GVar->hasGlobalUnnamedAddr() ||
 3419     return V->isConstant();
lib/Target/BPF/BTFDebug.cpp
 1068       if (Global.isConstant())
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  230   if (GVar->isConstant()) {
lib/Target/Mips/MipsTargetObjectFile.cpp
  135   if (EmbeddedData && GVA->isConstant())
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
   84           M, GV->getValueType(), GV->isConstant(),
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  713       return GV->isConstant();
lib/Target/PowerPC/PPCTargetObjectFile.cpp
   43     if (GVar && GVar->isConstant() && GVar->getInitializer()->needsRelocation())
lib/Target/TargetLoweringObjectFile.cpp
   78   if (GV->isConstant())
  178   if (GVar->isConstant()) {
lib/Target/X86/X86ISelLowering.cpp
38984         if (GV->isConstant() && GV->hasDefinitiveInitializer()) {
lib/Target/XCore/XCoreISelLowering.cpp
  258       (GVar && GVar->isConstant() && GV->hasLocalLinkage()))
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  196     new GlobalVariable(*M, NewType, GV->isConstant(), GV->getLinkage(),
lib/Transforms/Coroutines/CoroInstr.h
  168     assert(GV->isConstant() && GV->hasDefinitiveInitializer());
lib/Transforms/IPO/ConstantMerge.cpp
   97   return !GV->isConstant() || !GV->hasDefinitiveInitializer() ||
lib/Transforms/IPO/GlobalOpt.cpp
  229       if (MemSrc && MemSrc->isConstant()) {
 2095   if (GVar->isConstant() || !GVar->hasInitializer())
lib/Transforms/IPO/GlobalSplit.cpp
   80                            GV.isConstant(), GlobalValue::PrivateLinkage,
lib/Transforms/IPO/WholeProgramDevirt.cpp
  816     if (!TM.Bits->GV->isConstant())
 1513       new GlobalVariable(M, NewInit->getType(), B.GV->isConstant(),
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1827         if (GVSrc->isConstant()) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
 1839         if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
 3254         if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
 6061           if (GV->isConstant() && GV->hasDefinitiveInitializer() &&
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
   40     return GV->isConstant();
  807       if (!GV->hasDefinitiveInitializer() || !GV->isConstant())
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2287     if (G->isConstant() && Linkage == GlobalValue::PrivateLinkage)
 2290         new GlobalVariable(M, NewTy, G->isConstant(), Linkage, NewInitializer,
 2302         G->isConstant()) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1200     if (isa<GlobalVariable>(Obj) && cast<GlobalVariable>(Obj)->isConstant())
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1261   auto *NewGV = new GlobalVariable(M, Initializer->getType(), GV->isConstant(),
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  344     if (GV->isConstant()) {
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
 1853         if (GV->isConstant())
lib/Transforms/Scalar/MemCpyOptimizer.cpp
 1151     if (GV->isConstant() && GV->hasDefinitiveInitializer())
lib/Transforms/Utils/CloneModule.cpp
   65                                             I->isConstant(), I->getLinkage(),
lib/Transforms/Utils/CtorUtils.cpp
   48       new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(),
lib/Transforms/Utils/VNCoercion.cpp
  313   if (!GV || !GV->isConstant() || !GV->hasDefinitiveInitializer())
tools/clang/lib/CodeGen/CGDecl.cpp
  341                                   OldGV->isConstant(),
tools/clang/lib/CodeGen/CodeGenModule.cpp
 3984       getLLVMLinkageVarDefinition(D, GV->isConstant());