Home
last modified time | relevance | path

Searched refs:ConstantAggregateZero (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DConstant.cpp198 ConstantAggregateZero *ConstantAggregateZero::get(Type *Ty) { in get()
199 auto *LLVMC = llvm::ConstantAggregateZero::get(Ty->LLVMTy); in get()
200 return cast<ConstantAggregateZero>( in get()
204 Constant *ConstantAggregateZero::getSequentialElement() const { in getSequentialElement()
206 cast<llvm::ConstantAggregateZero>(Val)->getSequentialElement())); in getSequentialElement()
208 Constant *ConstantAggregateZero::getStructElement(unsigned Elt) const { in getStructElement()
210 cast<llvm::ConstantAggregateZero>(Val)->getStructElement(Elt))); in getStructElement()
212 Constant *ConstantAggregateZero::getElementValue(Constant *C) const { in getElementValue()
214 Ctx.getValue(cast<llvm::ConstantAggregateZero>(Val)->getElementValue( in getElementValue()
217 Constant *ConstantAggregateZero::getElementValue(unsigned Idx) const { in getElementValue()
[all …]
H A DContext.cpp319 auto *CAZ = cast<llvm::ConstantAggregateZero>(LLVMC); in getOrCreateValueInternal()
320 It->second = std::unique_ptr<ConstantAggregateZero>( in getOrCreateValueInternal()
321 new ConstantAggregateZero(CAZ, *this)); in getOrCreateValueInternal()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp103 return isa<ConstantAggregateZero>(this) || isa<ConstantPointerNull>(this) || in isNullValue()
328 if (isa<ConstantAggregateZero>(C)) in containsUndefinedElement()
392 return ConstantAggregateZero::get(Ty); in getNullValue()
442 if (const auto *CAZ = dyn_cast<ConstantAggregateZero>(this)) in getAggregateElement()
538 delete static_cast<ConstantAggregateZero *>(C); in deleteConstant()
1134 Constant *ConstantAggregateZero::getSequentialElement() const { in getSequentialElement()
1140 Constant *ConstantAggregateZero::getStructElement(unsigned Elt) const { in getStructElement()
1144 Constant *ConstantAggregateZero::getElementValue(Constant *C) const { in getElementValue()
1150 Constant *ConstantAggregateZero::getElementValue(unsigned Idx) const { in getElementValue()
1156 ElementCount ConstantAggregateZero::getElementCount() const { in getElementCount()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DValues.def36 DEF_CONST(ConstantAggregateZero, ConstantAggregateZero)
H A DConstant.h450 class ConstantAggregateZero final : public Constant {
451 ConstantAggregateZero(llvm::ConstantAggregateZero *C, Context &Ctx) in ConstantAggregateZero() function
452 : Constant(ClassID::ConstantAggregateZero, C, Ctx) {} in ConstantAggregateZero()
456 LLVM_ABI static ConstantAggregateZero *get(Type *Ty);
470 return cast<llvm::ConstantAggregateZero>(Val)->getElementCount(); in getElementCount()
475 return From->getSubclassID() == ClassID::ConstantAggregateZero; in classof()
482 assert(isa<llvm::ConstantAggregateZero>(Val) && "Expected a CAZ!"); in verify()
H A DValue.h151 friend class ConstantAggregateZero; // For `Val`. variable
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp64 if (isa<ConstantAggregateZero>(Mask)) in simplifyX86MaskedLoad()
88 if (isa<ConstantAggregateZero>(Mask)) { in simplifyX86MaskedStore()
220 return ConstantAggregateZero::get(VT); in simplifyX86immShift()
275 return ConstantAggregateZero::get(VT); in simplifyX86immShift()
512 return ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
515 if (isa<ConstantAggregateZero>(Arg0) || isa<ConstantAggregateZero>(Arg1)) in simplifyX86pmulh()
516 return ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
522 : ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
525 : ConstantAggregateZero::get(ResTy); in simplifyX86pmulh()
572 return ConstantAggregateZero::get(ResTy); in simplifyX86pmadd()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DMangling.cpp60 if (isa<ConstantAggregateZero>(InitVal)) in add()
H A DLayer.cpp65 if (isa<ConstantAggregateZero>(InitVal)) in IRMaterializationUnit()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILFlattenArrays.cpp382 if (isa<ConstantAggregateZero>(Init)) { in collectElements()
407 if (isa<ConstantAggregateZero>(Init)) in transformInitializer()
408 return ConstantAggregateZero::get(FlattenedType); in transformInitializer()
H A DDXILDataScalarization.cpp345 if (isa<ConstantAggregateZero>(Init)) { in transformInitializer()
346 return ConstantAggregateZero::get(NewType); in transformInitializer()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h359 class ConstantAggregateZero final : public ConstantData {
362 explicit ConstantAggregateZero(Type *Ty) in ConstantAggregateZero() function
368 ConstantAggregateZero(const ConstantAggregateZero &) = delete;
370 LLVM_ABI static ConstantAggregateZero *get(Type *Ty);
H A DValue.def81 HANDLE_CONSTANT(ConstantAggregateZero)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCtorUtils.cpp94 if (isa<ConstantAggregateZero>(V)) in findGlobalCtors()
H A DValueMapper.cpp536 if (isa<ConstantAggregateZero>(C)) in mapValue()
537 return getVM()[V] = ConstantAggregateZero::get(NewTy); in mapValue()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp1222 if (isa<ConstantPointerNull, ConstantAggregateZero>(OtherOp)) in binaryOpIsDerivedFromSameAlloca()
1585 if (isa<ConstantPointerNull, ConstantAggregateZero>(LHS)) in tryPromoteAllocaToLDS()
1588 if (isa<ConstantPointerNull, ConstantAggregateZero>(RHS)) in tryPromoteAllocaToLDS()
1606 if (isa<ConstantPointerNull, ConstantAggregateZero>(SI->getOperand(1))) in tryPromoteAllocaToLDS()
1609 if (isa<ConstantPointerNull, ConstantAggregateZero>(SI->getOperand(2))) in tryPromoteAllocaToLDS()
1613 if (isa<ConstantPointerNull, ConstantAggregateZero>( in tryPromoteAllocaToLDS()
H A DAMDGPULateCodeGenPrepare.cpp317 if (!IncInst && !isa<ConstantAggregateZero>(V)) in optimizeLiveType()
368 if (isa<ConstantAggregateZero>(IncVal)) { in optimizeLiveType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowerEmuTLS.cpp128 if (isa<ConstantAggregateZero>(InitValue) || in addEmuTlsVar()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVCodeGenPrepare.cpp160 WidePhi->addIncoming(ConstantAggregateZero::get(WideTy), in widenVPMerge()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp121 if (isa<ConstantAggregateZero>(C)) in IsNullTerminatedString()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp936 const ConstantAggregateZero *CAZ = dyn_cast<ConstantAggregateZero>(C); in getConstantValue()
1168 if (isa<ConstantAggregateZero>(Init)) { in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp389 if (isa<ConstantAggregateZero>(CV) || isa<UndefValue>(CV)) in fillGenericConstant()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp79 return llvm::ConstantAggregateZero::get(Ty); in getZeroes()
378 if (isa<llvm::ConstantAggregateZero>(C)) { in split()
1069 return llvm::ConstantAggregateZero::get(DesiredType); in EmitArrayConstant()
1092 Elements.back() = llvm::ConstantAggregateZero::get(FillerType); in EmitArrayConstant()
1976 llvm::ConstantAggregateZero::get( in emitForMemory()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/Offloading/
H A DUtility.cpp116 ConstantAggregateZero::get(ArrayType::get(getEntryTy(M), 0u)); in getOffloadEntryArray()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp178 } else if (auto *Struct = dyn_cast<ConstantAggregateZero>(MaybeStruct)) { in getAnnotation()

123