1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/include/llvm/IR
Nikita Popov c66ba11a1e Reapply [IR] Don't accept nullptr as GEP element type
Reapply after fixing another occurrence in lldb that was relying
on this in the preceding commit.

-----

GetElementPtrInst::Create() (and IRBuilder methods based on it)
currently accept nullptr as the element type, and will fetch the
element type from the pointer in that case. Remove this fallback,
as it is incompatible with opaque pointers. I've removed a handful
of leftover calls using this behavior as a preliminary step.

Out-of-tree code affected by this change should either pass a proper
type, or can temporarily explicitly call getPointerElementType(),
if the newly added assertion is encountered.

Differential Revision: https://reviews.llvm.org/D105653
2021-07-09 21:14:41 +02:00
..
AbstractCallSite.h
Argument.h [IR][AutoUpgrade] Drop alignment from non-pointer parameters and returns 2021-05-20 09:54:38 -07:00
AssemblyAnnotationWriter.h
Assumptions.h [Clang][Attr] Introduce the assume function attribute 2020-12-15 16:51:34 -06:00
Attributes.h [AttrBuilder] Try to fix build 2021-07-09 18:27:57 +02:00
Attributes.td Reapply [IR] Don't mark mustprogress as type attribute 2021-07-09 20:57:44 +02:00
AutoUpgrade.h
BasicBlock.h [PowerPC][AIX} FIx AIX bootstrap build. 2021-06-02 09:31:11 -04:00
BuiltinGCs.h [GC][NFC] Move GCStrategy from CodeGen to IR 2021-05-13 12:31:59 +07:00
CallingConv.h IR/AArch64/X86: add "swifttailcc" calling convention. 2021-05-17 10:48:34 +01:00
CFG.h Replace uses of std::iterator with explicit using 2021-04-12 10:47:14 -07:00
CMakeLists.txt
Comdat.h
Constant.h [LowerConstantIntrinsics] reuse isManifestLogic from ConstantFolding 2021-05-14 15:35:21 -07:00
ConstantFolder.h
ConstantRange.h [NFC][ConstantRange] Add 'icmp' helper method 2021-04-10 19:38:55 +03:00
Constants.h [IR] Added operator delete to subclasses of User to avoid UB 2021-07-08 11:59:22 +02:00
ConstrainedOps.def
DataLayout.h [llvm][NFC] Remove deprecated DataLayout::getPreferredAlignment functions 2021-05-06 07:28:00 +00:00
DebugInfo.h Support stripping indirectly referenced DILocations from !llvm.loop metadata 2021-05-27 13:23:33 -07:00
DebugInfoFlags.def
DebugInfoMetadata.h Partial Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" 2021-06-24 09:46:38 +01:00
DebugLoc.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
DerivedTypes.h [OpaquePtr] Handle addrspacecasts in InstCombine 2021-06-22 17:45:30 +02:00
DerivedUser.h
DiagnosticHandler.h
DiagnosticInfo.h Improve the diagnostic of DiagnosticInfoResourceLimit (and warn-stack-size in particular) 2021-06-22 09:55:20 -07:00
DiagnosticPrinter.h
DIBuilder.h [IR] Fix Wdocumentation warning. NFCI. 2021-04-12 11:20:57 +01:00
Dominators.h [gvn] Precisely propagate equalities to phi operands 2021-03-08 08:59:00 -08:00
FixedMetadataKinds.def
FixedPointBuilder.h [Fixed Point] Add codegen for conversion between fixed-point and floating point. 2021-01-12 13:53:01 +01:00
FPEnv.h [FPEnv][InstSimplify] Constrained FP support for NaN 2021-07-09 11:26:28 -04:00
Function.h [IR] Add doc about Function::createWithDefaultAttr. NFC 2021-04-21 16:20:50 -07:00
GCStrategy.h [GC][NFC] Move GCStrategy from CodeGen to IR 2021-05-13 12:31:59 +07:00
GetElementPtrTypeIterator.h Replace uses of std::iterator with explicit using 2021-04-12 10:47:14 -07:00
GlobalAlias.h
GlobalIFunc.h [docs] Fix doxygen comments wrongly attached to the llvm namespace 2021-04-07 01:20:18 +02:00
GlobalIndirectSymbol.h [IR] Added operator delete to subclasses of User to avoid UB 2021-07-08 11:59:22 +02:00
GlobalObject.h [IR] GlobalObject.h - remove unused <utility> include. NFCI. 2021-04-19 13:25:35 +01:00
GlobalValue.h
GlobalVariable.h Add a default address space for globals to DataLayout 2020-11-20 15:46:52 +00:00
GVMaterializer.h
InlineAsm.h Support unwinding from inline assembly 2021-05-13 19:13:03 +01:00
InstIterator.h
InstrTypes.h [IR] Added operator delete to subclasses of User to avoid UB 2021-07-08 11:59:22 +02:00
Instruction.def
Instruction.h [InstCombine] Relax constraints of uses for exp(X) * exp(Y) -> exp(X + Y) 2021-06-01 08:33:23 -04:00
Instructions.h Reapply [IR] Don't accept nullptr as GEP element type 2021-07-09 21:14:41 +02:00
InstVisitor.h [Intrinsics] Make MemCpyInlineInst a MemCpyInst 2021-07-02 10:25:24 -07:00
IntrinsicInst.h [Intrinsics] Make MemCpyInlineInst a MemCpyInst 2021-07-02 10:25:24 -07:00
Intrinsics.h Intrinsic::getName: require a Module argument 2021-06-14 14:52:29 +02:00
Intrinsics.td [NFC] Fix a few whitespace issues and typos. 2021-07-04 11:49:58 +01:00
IntrinsicsAArch64.td [AArch64][SVE] Improve codegen for dupq SVE ACLE intrinsics 2021-06-07 12:21:38 +01:00
IntrinsicsAMDGPU.td [AMDGPU] Expose __builtin_amdgcn_perm for v_perm_b32 2021-05-06 16:17:33 -07:00
IntrinsicsARM.td [ARM] Memory operands for MVE gathers/scatters 2021-05-03 11:24:59 +01:00
IntrinsicsBPF.td
IntrinsicsHexagon.td [Hexagon] Add HVX intrinsics for conditional vector loads/stores 2021-04-22 11:49:29 -05:00
IntrinsicsHexagonDep.td [Hexagon] Add LLVM instruction definitions for Hexagon V68 2021-02-03 13:59:34 -06:00
IntrinsicsMips.td
IntrinsicsNVVM.td [Clang][NVPTX] Add NVPTX intrinsics and builtins for CUDA PTX 6.5 and 7.0 WMMA and MMA instructions 2021-06-29 15:44:07 -07:00
IntrinsicsPowerPC.td [PowerPC] Implament Load and Reserve and Store Conditional Builtins 2021-07-05 21:35:41 -05:00
IntrinsicsRISCV.td [RISCV] [1/2] Add IR intrinsic for Zbe extension 2021-04-25 19:14:34 -07:00
IntrinsicsSystemZ.td
IntrinsicsVE.td [VE] Support intrinsic to isnert/extract_subreg of v512i1 2021-01-11 20:40:10 +09:00
IntrinsicsVEVL.gen.td [VE] Add logical mask intrinsic instructions 2020-12-15 01:34:31 +09:00
IntrinsicsWebAssembly.td [WebAssembly] Remove saturating fp-to-int target intrinsics 2021-04-16 12:11:20 -07:00
IntrinsicsX86.td [X86] Support __tile_stream_loadd intrinsic for new AMX interface 2021-06-11 17:28:43 +08:00
IntrinsicsXCore.td
IRBuilder.h [IR] Restore vector support for deprecated CreateGEP methods 2021-07-08 18:15:56 +02:00
IRBuilderFolder.h
IRPrintingPasses.h [NewPM] Support --print-before/after in NPM 2020-12-03 16:52:14 -08:00
LegacyPassManager.h [opt] Error if -debug-pass is specified alongside the new PM 2021-03-02 15:59:28 -08:00
LegacyPassManagers.h [IR] Use range-based for loops (NFC) 2021-02-28 10:59:23 -08:00
LegacyPassNameParser.h
LLVMContext.h [OpaquePtr] Support opaque pointers in intrinsic type check 2021-07-01 18:26:41 +02:00
LLVMRemarkStreamer.h [Remarks][1/2] Expand remarks hotness threshold option support in more tools 2020-11-30 21:55:49 -08:00
Mangler.h
MatrixBuilder.h [Matrix] Add support for matrix-by-scalar division. 2021-03-11 22:21:23 +00:00
MDBuilder.h [CSSPGO] Pseudo probe encoding and emission. 2020-12-10 17:29:28 -08:00
Metadata.def Revert "[DebugInfo] Enforce implicit constraints on distinct MDNodes" 2021-07-02 15:57:07 -07:00
Metadata.h [Metadata] Decorate methods with 'const'. NFC. 2021-07-08 14:11:14 -04:00
Module.h [IR] convert warn-stack-size from module flag to fn attr 2021-06-21 15:09:25 -07:00
ModuleSlotTracker.h [MIRPrinter] Add machine metadata support. 2021-06-19 12:48:08 -04:00
ModuleSummaryIndex.h [IR] Remove forward declaration of GraphTraits from Type.h 2021-06-15 09:23:45 +01:00
ModuleSummaryIndexYAML.h [ThinLTO] Add Visibility bits to GlobalValueSummary::GVFlags 2021-01-27 10:43:51 -08:00
NoFolder.h
OperandTraits.h
Operator.h Partial Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" 2021-06-24 09:46:38 +01:00
OptBisect.h Revert "Delay initialization of OptBisect" 2021-06-18 13:16:45 -05:00
PassInstrumentation.h [ADT] Move DenseMapInfo for ArrayRef/StringRef into respective headers (NFC) 2021-06-03 18:34:36 +02:00
PassManager.h [NewPM] Hide pass manager debug logging behind -debug-pass-manager-verbose 2021-05-07 21:51:47 -07:00
PassManagerImpl.h [NewPM] Move analysis invalidation/clearing logging to instrumentation 2021-05-07 15:25:31 -07:00
PassManagerInternal.h [docs] Fix doxygen comments wrongly attached to the llvm namespace 2021-04-07 01:20:18 +02:00
PassTimingInfo.h [Time-report] Add a flag -ftime-report={per-pass,per-pass-run} to control the pass timing aggregation 2020-12-08 10:13:19 -08:00
PatternMatch.h [PatternMatch] Make m_VScale compatible with opaque pointers 2021-06-23 23:02:13 +02:00
PredIteratorCache.h [llvm] Construct SmallVector with iterator ranges (NFC) 2021-01-04 11:42:44 -08:00
PrintPasses.h [NewPM] Support --print-before/after in NPM 2020-12-03 16:52:14 -08:00
ProfileSummary.h
PseudoProbe.h [CSSPGO] Undoing the concept of dangling pseudo probe 2021-06-18 15:14:11 -07:00
ReplaceConstant.h [IR] Add utility to convert constant expression operands (of an instruction) to instructions. 2021-06-08 03:22:32 +05:30
RuntimeLibcalls.def [RISCV] Support Zfh half-precision floating-point extension. 2020-12-03 09:16:33 +08:00
SafepointIRVerifier.h [llvm] Fix header guards (NFC) 2021-02-05 21:02:06 -08:00
Statepoint.h Move GCRelocateInst and GCResultInst to IntrinsicInst.h [nfc] 2021-04-06 08:33:15 -07:00
StructuralHash.h
SymbolTableListTraits.h Replace T(x) with reinterpret_cast<T>(x) everywhere it means reinterpret_cast. NFC. 2020-12-22 19:54:29 -05:00
TrackingMDRef.h
Type.h [IR] Add Type::isOpaquePointerTy() helper (NFC) 2021-06-25 20:56:59 +02:00
TypeFinder.h
Use.h
UseListOrder.h
User.h Avoid redundant inline with LLVM_ATTRIBUTE_ALWAYS_INLINE 2020-12-01 14:43:16 -08:00
Value.def Adding PoisonValue for representing poison value explicitly in IR 2020-11-25 17:33:51 -07:00
Value.h [IR] Allow Value::replaceUsesWithIf() to process constants 2021-05-25 02:12:01 -07:00
ValueHandle.h [NFC] Minor cleanup for ValueHandle code. 2021-01-20 16:27:55 -08:00
ValueMap.h Replace uses of std::iterator with explicit using 2021-04-12 10:47:14 -07:00
ValueSymbolTable.h Fix non-global-value-max-name-size not considered by LLParser 2021-05-27 04:20:03 +00:00
Verifier.h
VPIntrinsics.def [VP] Implementation of intrinsic and SDNode definitions for VP load, store, gather, scatter. 2021-07-01 13:34:44 +02:00