Add @llvm.clear_cache builtin

Press ? to show keyboard shortcuts.
Auditors
dsanders
H39 MIPS Backend Audit Triggered Audit
Committed
rengolinMar 26 2014, 5:52 AM
Parents
rL204801: [PowerPC] Lower VSELECT using xxsel when VSX is available
Branches
Unknown
Tags
Unknown
Description

Add @llvm.clear_cache builtin

Implementing the LLVM part of the call to builtin_clear_cache
which translates into an intrinsic @llvm.clear_cache and is lowered
by each target, either to a call to __clear_cache or nothing at all
incase the caches are unified.

Updating LangRef and adding some tests for the implemented architectures.
Other archs will have to implement the method in case this builtin
has to be compiled for it, since the default behaviour is to bail
unimplemented.

A Clang patch is required for the builtin to be lowered into the
llvm intrinsic. This will be done next.

Mar 30 2014, 1:24 PM ยท #1
dsanders resigned from this commit.

rL204802

llvm/trunk/docs/LangRef.rst

Loading...

llvm/trunk/include/llvm/IR/Intrinsics.td

Loading...

llvm/trunk/include/llvm/Target/TargetLowering.h

Loading...

llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Loading...

llvm/trunk/lib/Target/ARM/ARMISelLowering.h

Loading...

llvm/trunk/lib/Target/Mips/MipsISelLowering.h

Loading...

llvm/trunk/lib/Target/X86/X86ISelLowering.h

Loading...

llvm/trunk/test/CodeGen/ARM/cache-intrinsic.ll

Loading...

llvm/trunk/test/CodeGen/Mips/cache-intrinsic.ll

Loading...

llvm/trunk/test/CodeGen/X86/cache-intrinsic.ll

Loading...

Add Comment