llvm-project/clang/lib/CodeGen
Prabhdeep Singh Soni 6149589127 [OMPIRBuilder] Support depend clause for task
This patch adds support for the `depend` clause for the `task`
construct.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D135695
2022-10-19 13:11:43 -04:00
..
ABIInfo.h
Address.h
BackendUtil.cpp Add -fsanitizer-coverage=control-flow 2022-09-15 15:56:04 -07:00
CGAtomic.cpp
CGBlocks.cpp
CGBlocks.h
CGBuilder.h
CGBuiltin.cpp [X86][RFC] Using `__bf16` for AVX512_BF16 intrinsics 2022-10-19 23:47:04 +08:00
CGCUDANV.cpp Do not append terminating NUL to the binary string with embedded fatbin. 2022-10-17 15:39:39 -07:00
CGCUDARuntime.cpp
CGCUDARuntime.h
CGCXX.cpp
CGCXXABI.cpp
CGCXXABI.h [clang] Add cc1 option -fctor-dtor-return-this 2022-10-03 14:28:06 -07:00
CGCall.cpp [clang] Fix crash with -funique-internal-linkage-names 2022-10-17 08:57:23 -07:00
CGCall.h
CGClass.cpp
CGCleanup.cpp
CGCleanup.h
CGCoroutine.cpp [C++] [Coroutines] Prefer aligned (de)allocation for coroutines - 2022-09-22 11:28:29 +08:00
CGDebugInfo.cpp [clang][DebugInfo] Respect fmodule-file-home-is-cwd in skeleton CUs for clang modules 2022-10-04 11:25:43 -07:00
CGDebugInfo.h [clang-cl] Implement /ZH: flag 2022-09-25 14:43:14 -04:00
CGDecl.cpp [HLSL] CodeGen hlsl cbuffer/tbuffer. 2022-10-12 21:17:38 -07:00
CGDeclCXX.cpp
CGException.cpp
CGExpr.cpp [AMDGPU] Disable bool range metadata to workaround backend issue 2022-10-07 10:46:04 -04:00
CGExprAgg.cpp
CGExprCXX.cpp
CGExprComplex.cpp [clang] use getCommonSugar in an assortment of places 2022-09-16 16:36:00 +02:00
CGExprConstant.cpp
CGExprScalar.cpp
CGGPUBuiltin.cpp
CGHLSLRuntime.cpp [HLSL] Add SV_DispatchThreadID 2022-10-18 16:17:19 -07:00
CGHLSLRuntime.h [HLSL] Add SV_DispatchThreadID 2022-10-18 16:17:19 -07:00
CGLoopInfo.cpp
CGLoopInfo.h
CGNonTrivialStruct.cpp
CGObjC.cpp [CodeGen][ObjC] Call synthesized copy constructor/assignment operator 2022-10-14 10:40:24 -07:00
CGObjCGNU.cpp
CGObjCMac.cpp Remove the unused/undefined `_cmd` parameter in `objc_direct` methods. 2022-09-21 15:37:48 -07:00
CGObjCRuntime.cpp
CGObjCRuntime.h
CGOpenCLRuntime.cpp
CGOpenCLRuntime.h
CGOpenMPRuntime.cpp [OMPIRBuilder] Support depend clause for task 2022-10-19 13:11:43 -04:00
CGOpenMPRuntime.h [OpenMP][OpenMPIRBuilder] Migrate OffloadEntriesInfoManager from clang to OMPIRbuilder 2022-10-16 08:32:40 -04:00
CGOpenMPRuntimeGPU.cpp Add support for CUDA-11.8 and sm_{87,89,90} GPUs. 2022-10-07 13:59:28 -07:00
CGOpenMPRuntimeGPU.h Revert "[OpenMP] Codegen aggregate for outlined function captures" 2022-09-15 03:08:46 +00:00
CGRecordLayout.h
CGRecordLayoutBuilder.cpp
CGStmt.cpp [CGStmt] Use helper functions to set memory attributes (NFC) 2022-10-12 16:38:39 +02:00
CGStmtOpenMP.cpp [OpenMP][OMPIRBuilder] Add generation of SIMD align assumptions to OMPIRBuilder 2022-10-18 02:04:18 -05:00
CGVTT.cpp
CGVTables.cpp
CGVTables.h
CGValue.h
CMakeLists.txt [NFC] [HLSL] Move common metadata to LLVMFrontend 2022-10-14 13:40:04 -05:00
CodeGenABITypes.cpp
CodeGenAction.cpp
CodeGenFunction.cpp Avoid __builtin_assume_aligned crash when the 1st arg is array type 2022-09-07 12:46:20 -04:00
CodeGenFunction.h Repair a confusing standards reference; NFC 2022-10-10 14:10:39 -04:00
CodeGenModule.cpp [HLSL] CodeGen hlsl cbuffer/tbuffer. 2022-10-12 21:17:38 -07:00
CodeGenModule.h
CodeGenPGO.cpp
CodeGenPGO.h
CodeGenTBAA.cpp
CodeGenTBAA.h
CodeGenTypeCache.h
CodeGenTypes.cpp Properly print unnamed TagDecl objects in diagnostics 2022-10-14 08:18:28 -04:00
CodeGenTypes.h
ConstantEmitter.h
ConstantInitBuilder.cpp
CoverageMappingGen.cpp
CoverageMappingGen.h
EHScopeStack.h
ItaniumCXXABI.cpp [clang][codegen] Don't emit atomic loads for threadsafe init if they aren't inline 2022-10-11 14:00:33 -07:00
MacroPPCallbacks.cpp
MacroPPCallbacks.h
MicrosoftCXXABI.cpp MSVC ABI: Looks like even non-aarch64 uses the MSVC/14 definition for pod/aggregate passing 2022-10-04 20:19:17 +00:00
ModuleBuilder.cpp
ObjectFilePCHContainerOperations.cpp
PatternInit.cpp
PatternInit.h
README.txt
SanitizerMetadata.cpp
SanitizerMetadata.h
SwiftCallingConv.cpp
TargetInfo.cpp [clang][PowerPC] PPC64 VAArg fix right-alignment for aggregates fit in register 2022-10-16 22:01:47 -04:00
TargetInfo.h
VarBypassDetector.cpp
VarBypassDetector.h

README.txt

IRgen optimization opportunities.

//===---------------------------------------------------------------------===//

The common pattern of
--
short x; // or char, etc
(x == 10)
--
generates an zext/sext of x which can easily be avoided.

//===---------------------------------------------------------------------===//

Bitfields accesses can be shifted to simplify masking and sign
extension. For example, if the bitfield width is 8 and it is
appropriately aligned then is is a lot shorter to just load the char
directly.

//===---------------------------------------------------------------------===//

It may be worth avoiding creation of alloca's for formal arguments
for the common situation where the argument is never written to or has
its address taken. The idea would be to begin generating code by using
the argument directly and if its address is taken or it is stored to
then generate the alloca and patch up the existing code.

In theory, the same optimization could be a win for block local
variables as long as the declaration dominates all statements in the
block.

NOTE: The main case we care about this for is for -O0 -g compile time
performance, and in that scenario we will need to emit the alloca
anyway currently to emit proper debug info. So this is blocked by
being able to emit debug information which refers to an LLVM
temporary, not an alloca.

//===---------------------------------------------------------------------===//

We should try and avoid generating basic blocks which only contain
jumps. At -O0, this penalizes us all the way from IRgen (malloc &
instruction overhead), all the way down through code generation and
assembly time.

On 176.gcc:expr.ll, it looks like over 12% of basic blocks are just
direct branches!

//===---------------------------------------------------------------------===//