Revision 3e5929498f200e37a4b983548b439127ee50830c authored by Dillon Sharlet on 30 March 2021, 23:26:22 UTC, committed by GitHub on 30 March 2021, 23:26:22 UTC
* Add TailStrategy::Predicate

* Add some tests for TailStrategy::Predicate.

* Fix missing override.

* Fix comment.

* Tweak target behavior.

* Remove all heuristics

* clang-format.

* clang-tidy.

* TailStrategy::GuardWithIf isn't always faster than scalar code :(

* Use TailStrategy::Predicate in the predicated store/load test.

* What is this test

* Fix test bug.

* Revert x86 behavior.

* Move predicate to Internal namespace.

* Recursively strip tags.

* trigger buildbots

* strip_tags -> unwrap_tags

* Fix comment.

Co-authored-by: Steven Johnson <srj@google.com>
1 parent 7bbe2fd
Raw File
Halide.natvis
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">

	<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" MenuName="Add to Image Watch"/>

	<Type Name="Halide::Internal::BufferContents">
		<DisplayString>{{ {name} }}</DisplayString>
		<Expand>
			<Synthetic Name="[type]" Condition='type.code == 0'>
				<DisplayString>INT{type.bits}</DisplayString>
			</Synthetic>
			<Synthetic Name="[type]" Condition='type.code == 1'>
				<DisplayString>UINT{type.bits}</DisplayString>
			</Synthetic>
			<Synthetic Name="[type]" Condition='type.code == 2'>
				<DisplayString>FLOAT{type.bits}</DisplayString>
			</Synthetic>
			<Item Name="[channels]">buf.extent[2] > 1 ? buf.extent[2] : 1</Item>
			<Item Name="[planes]">buf.extent[2] > 1 ? buf.extent[2] : 1</Item>
			<Item Name="[width]">buf.extent[0]</Item>
			<Item Name="[height]">buf.extent[1]</Item>
			<Item Name="[data]">buf.host</Item>
			<Item Name="[stride]">buf.stride[1] * buf.elem_size</Item>
			<Item Name="raw">this</Item>
		</Expand>
	</Type>

	<Type Name="Halide::Buffer">
		<UIVisualizer ServiceId="{A452AFEA-3DF6-46BB-9177-C0B08F318025}" Id="1" />
	</Type>

	<Type Name="Halide::Buffer">
		<Expand>
			<ExpandedItem>
				(Halide.dll!Halide::Internal::BufferContents*)contents.ptr
			</ExpandedItem>
		</Expand>
	</Type>
</AutoVisualizer>
back to top